Use built-in iteration functions more

This commit is contained in:
François Garillot
2019-12-02 07:28:49 -08:00
committed by Pratyush Mishra
parent c42c7dd98a
commit 53a51eb4dc
5 changed files with 6 additions and 9 deletions

View File

@@ -586,7 +586,7 @@ impl Boolean {
// This is part of a run of ones.
current_run.push(a.clone());
} else {
if current_run.len() > 0 {
if !current_run.is_empty() {
// This is the start of a run of zeros, but we need
// to k-ary AND against `last_run` first.