use all
This commit is contained in:
parent
c37589f38e
commit
527cadc880
|
@ -126,8 +126,7 @@ macro_rules! impl_hash {
|
|||
}
|
||||
|
||||
pub fn is_zero(&self) -> bool {
|
||||
for b in self.0.iter() { if *b != 0 { return false; } }
|
||||
return true;
|
||||
self.0.iter().all(|b| *b == 0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue