Skip to content

Commit

Permalink
Remove some as casts
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 31, 2023
1 parent 8e48504 commit 6111ac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,6 @@ pub(crate) fn clean_args(cx: &Context, cmd: &mut ProcessBuilder) {

// If `-vv` is passed, propagate `-v` to cargo.
if cx.args.verbose > 1 {
cmd.arg(format!("-{}", "v".repeat(cx.args.verbose as usize - 1)));
cmd.arg(format!("-{}", "v".repeat(usize::from(cx.args.verbose) - 1)));
}
}
2 changes: 1 addition & 1 deletion src/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fn clean_ws(
cmd.args(["clean", "--target-dir", ws.target_dir.as_str()]).args(&package_args);
cmd.args(args);
if verbose > 0 {
cmd.arg(format!("-{}", "v".repeat(verbose as usize)));
cmd.arg(format!("-{}", "v".repeat(usize::from(verbose))));
}
manifest.cargo_args(&mut cmd);
cmd.dir(&ws.metadata.workspace_root);
Expand Down

0 comments on commit 6111ac1

Please sign in to comment.