Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/ui/mod.rs')
| -rw-r--r-- | helix-term/src/ui/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index 6ee49fa5..2313fb80 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -363,7 +363,7 @@ pub mod completers { git_ignore: bool, ) -> Vec<Completion> { filename_impl(editor, input, git_ignore, |entry| { - let is_dir = entry.file_type().map_or(false, |entry| entry.is_dir()); + let is_dir = entry.file_type().is_some_and(|entry| entry.is_dir()); if is_dir { FileMatch::AcceptIncomplete @@ -414,7 +414,7 @@ pub mod completers { git_ignore: bool, ) -> Vec<Completion> { filename_impl(editor, input, git_ignore, |entry| { - let is_dir = entry.file_type().map_or(false, |entry| entry.is_dir()); + let is_dir = entry.file_type().is_some_and(|entry| entry.is_dir()); if is_dir { FileMatch::Accept |