Skip to content

Commit

Permalink
Address nightly clippy warnings (#2000)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Sep 2, 2022
1 parent 97c9044 commit 874960a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions crates/tools/gnu/src/main.rs
Expand Up @@ -71,7 +71,7 @@ EXPORTS
drop(def);

let mut cmd = std::process::Command::new("dlltool");
cmd.current_dir(&output);
cmd.current_dir(output);

if platform.eq("i686_gnu") {
cmd.arg("-k");
Expand All @@ -94,7 +94,7 @@ EXPORTS
// unnecessary sections and symbols.
std::fs::rename(output.join(format!("lib{}.a", library)), output.join("tmp.a")).unwrap();
let mut cmd = std::process::Command::new("objcopy");
cmd.current_dir(&output);
cmd.current_dir(output);
cmd.arg("--remove-section=.bss");
cmd.arg("--remove-section=.data");
cmd.arg("--strip-unneeded-symbol=fthunk");
Expand Down Expand Up @@ -128,7 +128,7 @@ fn build_mri(output: &std::path::Path, libraries: &BTreeMap<String, BTreeMap<Str
mri.write_all(b"SAVE\nEND\n").unwrap();

let mut cmd = std::process::Command::new("ar");
cmd.current_dir(&output);
cmd.current_dir(output);
cmd.arg("-M");
cmd.stdin(std::fs::File::open(&mri_path).unwrap());
cmd.output().unwrap();
Expand Down
4 changes: 2 additions & 2 deletions crates/tools/gnullvm/src/main.rs
Expand Up @@ -70,7 +70,7 @@ EXPORTS
drop(def);

let mut cmd = std::process::Command::new("llvm-dlltool");
cmd.current_dir(&output);
cmd.current_dir(output);

cmd.arg("-m");
cmd.arg(dlltool_target);
Expand All @@ -97,7 +97,7 @@ fn build_mri(output: &std::path::Path, libraries: &BTreeMap<String, BTreeMap<Str
mri.write_all(b"SAVE\nEND\n").unwrap();

let mut cmd = std::process::Command::new("llvm-ar");
cmd.current_dir(&output);
cmd.current_dir(output);
cmd.arg("-M");
cmd.stdin(std::fs::File::open(&mri_path).unwrap());
cmd.output().unwrap();
Expand Down

0 comments on commit 874960a

Please sign in to comment.