File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ pub(crate) fn is_hidden(entry: &std::fs::DirEntry) -> bool {
213
213
return true ;
214
214
}
215
215
}
216
- if let Some ( name) = file_name ( entry. path ( ) ) {
216
+ if let Some ( name) = file_name ( & entry. path ( ) ) {
217
217
name. to_str ( ) . map ( |s| s. starts_with ( "." ) ) . unwrap_or ( false )
218
218
} else {
219
219
false
@@ -245,6 +245,6 @@ pub(crate) fn file_name<P: AsRef<Path> + ?Sized>(path: &P) -> Option<&std::ffi::
245
245
/// If the path terminates in ., .., or consists solely of a root of prefix,
246
246
/// file_name will return None.
247
247
#[ cfg( not( unix) ) ]
248
- pub ( crate ) fn file_name < ' a , P : AsRef < Path > + ?Sized > ( path : & ' a P ) -> Option < & ' a OsStr > {
248
+ pub ( crate ) fn file_name < ' a , P : AsRef < Path > + ?Sized > ( path : & ' a P ) -> Option < & ' a std :: ffi :: OsStr > {
249
249
path. as_ref ( ) . file_name ( )
250
250
}
You can’t perform that action at this time.
0 commit comments