mirror of
https://github.com/bgreenwell/lstr.git
synced 2025-12-16 12:00:11 +01:00
linting fixes
This commit is contained in:
@@ -183,7 +183,7 @@ fn main() {
|
||||
return WalkState::Continue;
|
||||
}
|
||||
|
||||
let is_dir = entry.file_type().map_or(false, |ft| ft.is_dir());
|
||||
let is_dir = entry.file_type().is_some_and(|ft| ft.is_dir());
|
||||
if args.dirs_only && !is_dir {
|
||||
return WalkState::Continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user