Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin committed Jun 21, 2024
1 parent 595ee24 commit e3a0489
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/find.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn find_nix_files(path: &PathBuf) -> Vec<String> {
WalkDir::new(path)
.into_iter()
.filter_entry(|e| !is_hidden(e))
.filter_map(|entry| entry.ok())
.map_while(Result::ok)
.filter(is_nix_file)
.filter(|path| path.metadata().is_ok())
// pkgs/test/nixpkgs-check-by-name/tests/symlink-invalid/pkgs/by-name/fo/foo/foo.nix
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn main() -> ExitCode {

find_lints(
&entry,
&file_contents.trim(),
file_contents.trim(),
&queries,
&args.node_debug,
)
Expand Down

0 comments on commit e3a0489

Please sign in to comment.