Skip to content

Commit

Permalink
refactor: more immutables
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Apr 22, 2024
1 parent c9b115c commit cf632f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ fn bury_target(
stream: &mut impl Write,
) -> Result<(), Error> {
// Check if source exists
let metadata = fs::symlink_metadata(target).map_err(|_| {
let metadata = &fs::symlink_metadata(target).map_err(|_| {
Error::new(
ErrorKind::NotFound,
format!(
Expand Down Expand Up @@ -211,7 +211,7 @@ fn bury_target(
fn do_inspection(
target: &Path,
source: &PathBuf,
metadata: Metadata,
metadata: &Metadata,
mode: &impl util::TestingMode,
stream: &mut impl Write,
) -> Result<bool, Error> {
Expand Down

0 comments on commit cf632f1

Please sign in to comment.