diff options
Diffstat (limited to 'crates/ra_vfs/src/lib.rs')
-rw-r--r-- | crates/ra_vfs/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_vfs/src/lib.rs b/crates/ra_vfs/src/lib.rs index 661892f8a..d1b0222e7 100644 --- a/crates/ra_vfs/src/lib.rs +++ b/crates/ra_vfs/src/lib.rs | |||
@@ -62,7 +62,8 @@ impl RootFilter { | |||
62 | 62 | ||
63 | pub(crate) fn entry_filter<'a>(&'a self) -> impl FnMut(&DirEntry) -> bool + 'a { | 63 | pub(crate) fn entry_filter<'a>(&'a self) -> impl FnMut(&DirEntry) -> bool + 'a { |
64 | move |entry: &DirEntry| { | 64 | move |entry: &DirEntry| { |
65 | if entry.path().is_dir() && self.excluded_dirs.iter().any(|it| it == entry.path()) { | 65 | if entry.file_type().is_dir() && self.excluded_dirs.iter().any(|it| it == entry.path()) |
66 | { | ||
66 | // do not walk nested roots | 67 | // do not walk nested roots |
67 | false | 68 | false |
68 | } else { | 69 | } else { |