Browse Source

Compiling with Rust 1.14.0, tests fail due to some lint shadowing errors. Looking for advice as to how to fix this

wintest
crw5996 6 years ago
parent
commit
bb780dcc27
  1. 5
      src/lib.rs

5
src/lib.rs

@ -2018,7 +2018,10 @@ impl Tool {
None => Command::new(&self.path), None => Command::new(&self.path),
}; };
cmd.args(&self.cc_wrapper_args); cmd.args(&self.cc_wrapper_args);
cmd.args(self.args.iter().filter(|a| !self.removed_args.contains(a)));
let value = self.args.iter().filter(|a| !self.removed_args.contains(a)).map(|a| a).collect::<Vec<_>>();
cmd.args(&value[..]);
for &(ref k, ref v) in self.env.iter() { for &(ref k, ref v) in self.env.iter() {
cmd.env(k, v); cmd.env(k, v);
} }

Loading…
Cancel
Save