fix clippy::len-zero

This commit is contained in:
Josh Stone 2025-02-18 09:20:11 -08:00
parent 9b08f0eebb
commit fa7a188e85

View file

@ -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");