Skip to content

Commit

Permalink
Remove redundant & for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
intelfx committed May 7, 2024
1 parent fa666f6 commit ddf5373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ fn process_crate(args: &Args) -> Result<CrateData, Error> {
// Run `cargo build` without json output first, so we could print build errors.
{
let cmd = &mut Command::new("cargo");
cmd.args(&get_cargo_args(args, false));
cmd.args(get_cargo_args(args, false));

// When targeting MSVC, symbols data will be stored in PDB files.
// But unlike other targets, the Release build would not have any useful information.
Expand All @@ -562,7 +562,7 @@ fn process_crate(args: &Args) -> Result<CrateData, Error> {
// Run `cargo build` with json output and collect it.
// This would not cause a rebuild.
let cmd = &mut Command::new("cargo");
cmd.args(&get_cargo_args(args, true));
cmd.args(get_cargo_args(args, true));
cmd.stdout(std::process::Stdio::piped());
cmd.stderr(std::process::Stdio::null());

Expand Down

0 comments on commit ddf5373

Please sign in to comment.