diff options
| author | Josh Stone <jistone@redhat.com> | 2025-02-18 09:20:11 -0800 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2025-02-18 09:32:44 -0800 |
| commit | fa7a188e85f54ac69607bce89d663a8443b9efe6 (patch) | |
| tree | 48438cce1188dd911275c92781ab5afdb47919f0 | |
| parent | 9b08f0eebb5d1f16069895bdb3c506c5078d17a5 (diff) | |
| download | rust-fa7a188e85f54ac69607bce89d663a8443b9efe6.tar.gz rust-fa7a188e85f54ac69607bce89d663a8443b9efe6.zip | |
fix `clippy::len-zero`
| -rw-r--r-- | src/bootstrap/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs index dfaf0418d9a..7e0346a8edc 100644 --- a/src/bootstrap/src/lib.rs +++ b/src/bootstrap/src/lib.rs @@ -633,7 +633,7 @@ impl Build { // Check for postponed failures from `test --no-fail-fast`. let failures = self.delayed_failures.borrow(); - if failures.len() > 0 { + if !failures.is_empty() { eprintln!("\n{} command(s) did not execute successfully:\n", failures.len()); for failure in failures.iter() { eprintln!(" - {failure}\n"); |
