Skip to content

Commit fa7a188

Browse files
committed
fix clippy::len-zero
1 parent 9b08f0e commit fa7a188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/bootstrap/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ impl Build {
633633

634634
// Check for postponed failures from `test --no-fail-fast`.
635635
let failures = self.delayed_failures.borrow();
636-
if failures.len() > 0 {
636+
if !failures.is_empty() {
637637
eprintln!("\n{} command(s) did not execute successfully:\n", failures.len());
638638
for failure in failures.iter() {
639639
eprintln!(" - {failure}\n");

0 commit comments

Comments
 (0)