Browse Source

Remove explicit return statements

vs2017
Daniel Lockyer 8 years ago
parent
commit
f92462fd84
  1. 6
      src/lib.rs

6
src/lib.rs

@ -818,7 +818,7 @@ impl Config {
for &(ref a, ref b) in self.env.iter() { for &(ref a, ref b) in self.env.iter() {
cmd.env(a, b); cmd.env(a, b);
} }
return cmd; cmd
} }
fn get_base_compiler(&self) -> Tool { fn get_base_compiler(&self) -> Tool {
@ -848,7 +848,7 @@ impl Config {
for arg in args { for arg in args {
t.args.push(arg.into()); t.args.push(arg.into());
} }
return t; t
}) })
.or_else(|| { .or_else(|| {
if target.contains("emscripten") { if target.contains("emscripten") {
@ -1110,7 +1110,7 @@ fn run_output(cmd: &mut Command, program: &str) -> Vec<u8> {
if !status.success() { if !status.success() {
fail(&format!("command did not execute successfully, got: {}", status)); fail(&format!("command did not execute successfully, got: {}", status));
} }
return stdout stdout
} }
fn spawn(cmd: &mut Command, program: &str) -> (Child, JoinHandle<()>) { fn spawn(cmd: &mut Command, program: &str) -> (Child, JoinHandle<()>) {

Loading…
Cancel
Save