style: package use
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate rust_util;
|
extern crate rust_util;
|
||||||
|
|
||||||
use std::{env, fs};
|
use std::{env, fs, process};
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ runrs <script.rs> [arguments]
|
|||||||
run_script_cmd.arg(arg);
|
run_script_cmd.arg(arg);
|
||||||
}
|
}
|
||||||
debugging!("Run command: {:?}", run_script_cmd);
|
debugging!("Run command: {:?}", run_script_cmd);
|
||||||
match rust_util::util_cmd::run_command_and_wait(&mut run_script_cmd) {
|
match util_cmd::run_command_and_wait(&mut run_script_cmd) {
|
||||||
Err(e) => failure_and_exit!("Run rust-script failed: {}", e),
|
Err(e) => failure_and_exit!("Run rust-script failed: {}", e),
|
||||||
Ok(exit_status) => {
|
Ok(exit_status) => {
|
||||||
if let Ok(Some(canonicalized_script_file)) = PathBuf::from(script_file)
|
if let Ok(Some(canonicalized_script_file)) = PathBuf::from(script_file)
|
||||||
@@ -83,7 +83,7 @@ runrs <script.rs> [arguments]
|
|||||||
debugging!("Write {} to {}", canonicalized_script_file, cache_script_bin_name_src);
|
debugging!("Write {} to {}", canonicalized_script_file, cache_script_bin_name_src);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::process::exit(exit_status.code().unwrap_or_else(|| 0))
|
process::exit(exit_status.code().unwrap_or_else(|| 0))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user