From 775d8418407f07b3e877ae89ff225df089e2635b Mon Sep 17 00:00:00 2001 From: "andy.boot" Date: Wed, 15 Jan 2025 19:35:20 +0000 Subject: [PATCH] style: clippy --- src/dir_walker.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dir_walker.rs b/src/dir_walker.rs index 6d547e9e..8f87de0c 100644 --- a/src/dir_walker.rs +++ b/src/dir_walker.rs @@ -126,8 +126,7 @@ fn sort_by_inode(a: &Node, b: &Node) -> std::cmp::Ordering { fn ignore_file(entry: &DirEntry, walk_data: &WalkData) -> bool { let is_dot_file = entry.file_name().to_str().unwrap_or("").starts_with('.'); let is_ignored_path = walk_data.ignore_directories.contains(&entry.path()); - let follow_links = - walk_data.follow_links && entry.file_type().map_or(false, |ft| ft.is_symlink()); + let follow_links = walk_data.follow_links && entry.file_type().is_ok_and(|ft| ft.is_symlink()); if !walk_data.allowed_filesystems.is_empty() { let size_inode_device = get_metadata(entry.path(), false, follow_links);