Skip to content

Commit

Permalink
refactor: unnecessary Path::new()
Browse files Browse the repository at this point in the history
  • Loading branch information
schneedotdev committed Aug 18, 2024
1 parent f19c588 commit 5a2095e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl Entry {
path
};

let directory = Path::new(&path)
let directory = path
.parent()
.ok_or(Error::CannotFindDir("parent".to_owned()))?;

Expand Down

0 comments on commit 5a2095e

Please sign in to comment.