We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
clippy::len-zero
1 parent 9b08f0e commit fa7a188Copy full SHA for fa7a188
src/bootstrap/src/lib.rs
@@ -633,7 +633,7 @@ impl Build {
633
634
// Check for postponed failures from `test --no-fail-fast`.
635
let failures = self.delayed_failures.borrow();
636
- if failures.len() > 0 {
+ if !failures.is_empty() {
637
eprintln!("\n{} command(s) did not execute successfully:\n", failures.len());
638
for failure in failures.iter() {
639
eprintln!(" - {failure}\n");
0 commit comments