Skip to content

Commit

Permalink
chore: apply clippy suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Soc Virnyl Estela <[email protected]>
  • Loading branch information
uncomfyhalomacro committed Dec 18, 2024
1 parent 4f41305 commit a760d59
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions cargo/src/cargo_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ pub fn cargo_fetch(curdir: &Path, manifest: &str, respect_lockfile: bool) -> io:
Err(_) => {
warn!("Lockfile not found in path... will attempt to regenerate");
cargo_generate_lockfile(&manifest_path_parent, manifest)?;
let possible_lockfile_check_again =
manifest_path_parent.join("Cargo.lock").canonicalize()?;
possible_lockfile_check_again
manifest_path_parent.join("Cargo.lock").canonicalize()?
}
};

Expand Down Expand Up @@ -144,9 +142,7 @@ pub fn cargo_vendor(
Err(_) => {
warn!("Lockfile not found in path... will attempt to regenerate");
cargo_generate_lockfile(&first_manifest_parent, &first_manifest.to_string_lossy())?;
let possible_lockfile_check_again =
first_manifest_parent.join("Cargo.lock").canonicalize()?;
possible_lockfile_check_again
first_manifest_parent.join("Cargo.lock").canonicalize()?
}
};

Expand Down Expand Up @@ -353,10 +349,8 @@ pub fn cargo_update(
Ok(canonicalized_path_to_lockfile) => canonicalized_path_to_lockfile,
Err(_) => {
warn!("Lockfile not found in path... will attempt to regenerate");
cargo_generate_lockfile(&manifest_path_parent, manifest)?;
let possible_lockfile_check_again =
manifest_path_parent.join("Cargo.lock").canonicalize()?;
possible_lockfile_check_again
cargo_generate_lockfile(manifest_path_parent, manifest)?;
manifest_path_parent.join("Cargo.lock").canonicalize()?
}
};

Expand Down

0 comments on commit a760d59

Please sign in to comment.