diff options
Diffstat (limited to 'helix-term/src/ui/mod.rs')
-rw-r--r-- | helix-term/src/ui/mod.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index 341a30e0..479e684a 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -149,10 +149,7 @@ pub mod completers { .build() .filter_map(|file| { file.ok().map(|entry| { - let is_dir = entry - .file_type() - .map(|entry| entry.is_dir()) - .unwrap_or(false); + let is_dir = entry.file_type().map_or(false, |entry| entry.is_dir()); let mut path = entry.path().strip_prefix(&dir).unwrap().to_path_buf(); |