summaryrefslogtreecommitdiff
path: root/cli/util/fs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/util/fs.rs')
-rw-r--r--cli/util/fs.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/util/fs.rs b/cli/util/fs.rs
index 4ac57eac0..8167fd2e5 100644
--- a/cli/util/fs.rs
+++ b/cli/util/fs.rs
@@ -732,7 +732,8 @@ mod tests {
path
.file_name()
.and_then(|f| f.to_str())
- .map_or(false, |f| !f.starts_with('.'))
+ .map(|f| !f.starts_with('.'))
+ .unwrap_or(false)
})
.add_ignore_paths(&[ignore_dir_path]);
@@ -847,7 +848,8 @@ mod tests {
path
.file_name()
.and_then(|f| f.to_str())
- .map_or(false, |f| !f.starts_with('.'))
+ .map(|f| !f.starts_with('.'))
+ .unwrap_or(false)
};
let result = collect_specifiers(