Skip to content

Commit 0d8c97b

Browse files
committed
build_helper: rename (try_)run_silent -> (try_)run
1 parent 79a1e7a commit 0d8c97b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/bootstrap/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ use std::os::unix::fs::symlink as symlink_file;
125125
use std::os::windows::fs::symlink_file;
126126

127127
use build_helper::{
128-
mtime, output, run_silent, run_suppressed, t, try_run_silent, try_run_suppressed,
128+
mtime, output, run, run_suppressed, t, try_run, try_run_suppressed,
129129
};
130130
use filetime::FileTime;
131131

@@ -682,7 +682,7 @@ impl Build {
682682
fn run(&self, cmd: &mut Command) {
683683
if self.config.dry_run { return; }
684684
self.verbose(&format!("running: {:?}", cmd));
685-
run_silent(cmd)
685+
run(cmd)
686686
}
687687

688688
/// Runs a command, printing out nice contextual information if it fails.
@@ -698,7 +698,7 @@ impl Build {
698698
fn try_run(&self, cmd: &mut Command) -> bool {
699699
if self.config.dry_run { return true; }
700700
self.verbose(&format!("running: {:?}", cmd));
701-
try_run_silent(cmd)
701+
try_run(cmd)
702702
}
703703

704704
/// Runs a command, printing out nice contextual information if it fails.

src/build_helper/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ pub fn restore_library_path() {
4848
/// Run the command, printing what we are running.
4949
pub fn run_verbose(cmd: &mut Command) {
5050
println!("running: {:?}", cmd);
51-
run_silent(cmd);
51+
run(cmd);
5252
}
5353

54-
pub fn run_silent(cmd: &mut Command) {
55-
if !try_run_silent(cmd) {
54+
pub fn run(cmd: &mut Command) {
55+
if !try_run(cmd) {
5656
std::process::exit(1);
5757
}
5858
}
5959

60-
pub fn try_run_silent(cmd: &mut Command) -> bool {
60+
pub fn try_run(cmd: &mut Command) -> bool {
6161
let status = match cmd.status() {
6262
Ok(status) => status,
6363
Err(e) => fail(&format!(

0 commit comments

Comments
 (0)