Skip to content

Commit

Permalink
style: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bootandy committed Jan 15, 2025
1 parent 609fc1e commit 775d841
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dir_walker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 775d841

Please sign in to comment.