Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed May 5, 2024
1 parent 3da46c1 commit 2631847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nix/nix_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ pub enum StorePath {
impl StorePath {
pub fn new(path: PathBuf) -> Self {
if path.ends_with(".drv") {
StorePath::Drv(PathBuf::from(path))
StorePath::Drv(path)
} else {
StorePath::Other(PathBuf::from(path))
StorePath::Other(path)
}
}

Expand Down

0 comments on commit 2631847

Please sign in to comment.