Skip to content

Commit 5a6e3cc

Browse files
committed
Remove is_verbose_than function
1 parent 5595f43 commit 5a6e3cc

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/bootstrap/src/core/builder/cargo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ impl Builder<'_> {
11391139
cargo.env("RUSTC_BACKTRACE_ON_ICE", "1");
11401140
}
11411141

1142-
if self.is_verbose_than(1) {
1142+
if self.verbosity >= 2 {
11431143
// This provides very useful logs especially when debugging build cache-related stuff.
11441144
cargo.env("CARGO_LOG", "cargo::core::compiler::fingerprint=info");
11451145
}

src/bootstrap/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,11 +1087,6 @@ impl Build {
10871087
})
10881088
}
10891089

1090-
/// Check if verbosity is greater than the `level`
1091-
pub fn is_verbose_than(&self, level: usize) -> bool {
1092-
self.verbosity > level
1093-
}
1094-
10951090
fn info(&self, msg: &str) {
10961091
match self.config.get_dry_run() {
10971092
DryRun::SelfCheck => (),

0 commit comments

Comments
 (0)