Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluis committed Mar 11, 2023
1 parent ed0edab commit 1cebdb1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ mod std_utils {
let mut root_path = current_path.clone();

for p in current_path.as_path().ancestors() {
let has_cargo = fs::read_dir(p)?
.into_iter()
.any(|p| p.unwrap().file_name() == *"Cargo.toml");
let has_cargo = fs::read_dir(p)?.any(|p| p.unwrap().file_name() == *"Cargo.toml");
if has_cargo {
return Ok(root_path.join(path.as_ref()));
} else {
Expand Down

0 comments on commit 1cebdb1

Please sign in to comment.