Skip to content

Commit

Permalink
chore(libscoop): fix clippy warning
Browse files Browse the repository at this point in the history
Signed-off-by: Chawye Hsu <[email protected]>
  • Loading branch information
chawyehsu committed Aug 9, 2023
1 parent 7287bd5 commit 3b50494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/libscoop/src/internal/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub fn symlink_dir<P: AsRef<Path>, Q: AsRef<Path>>(src: P, lnk: Q) -> io::Result
let src = src.as_ref();
let lnk = lnk.as_ref();
// Try to remove existing symlink, if any
let _ = remove_symlink(lnk)?;
remove_symlink(lnk)?;

// Ensure parent directory of `lnk` exists
ensure_dir(lnk.parent().unwrap())?;
Expand Down Expand Up @@ -161,7 +161,7 @@ pub fn symlink_file<P: AsRef<Path>, Q: AsRef<Path>>(src: P, lnk: Q) -> io::Resul
let src = src.as_ref();
let lnk = lnk.as_ref();
// Try to remove existing symlink, if any
let _ = remove_symlink(lnk)?;
remove_symlink(lnk)?;

// Ensure parent directory of `lnk` exists
ensure_dir(lnk.parent().unwrap())?;
Expand Down

0 comments on commit 3b50494

Please sign in to comment.