Skip to content

Commit

Permalink
ci: fix clippy (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yfo committed Sep 5, 2024
1 parent d2963cb commit 99c1381
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cargo-near-build/src/types/near/docker_build/cloned_repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,13 @@ impl ClonedRepo {
path.push(MANIFEST_FILE_NAME);
path
};
CrateMetadata::collect(ManifestPath::try_from(cargo_toml_path)?, no_locked).map_err(|err| {
CrateMetadata::collect(ManifestPath::try_from(cargo_toml_path)?, no_locked).inspect_err(|err| {
if !no_locked && err.to_string().contains("Cargo.lock is absent") {
no_locked_warn_pause(false);
println!();
println!("{}", "Cargo.lock check was performed against git version of code.".cyan());
println!("{}", "Don't forget to check in Cargo.lock into source code for deploy if it's git-ignored...".cyan());
}
err
})?
};
log::info!(
Expand Down

0 comments on commit 99c1381

Please sign in to comment.