This commit is contained in:
NikVolf 2016-10-24 15:36:35 +03:00
parent c37589f38e
commit 527cadc880
1 changed files with 1 additions and 2 deletions

View File

@ -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)
}
}
}