notification_sys base

This commit is contained in:
weisd
2024-12-04 10:55:09 +08:00
parent 9533e312b1
commit e39775bb34
17 changed files with 64 additions and 57 deletions
+2 -3
View File
@@ -139,13 +139,12 @@ impl DiskError {
}
pub fn count_errs(&self, errs: &[Option<Error>]) -> usize {
return errs
.iter()
errs.iter()
.filter(|&err| match err {
None => false,
Some(e) => self.is(e),
})
.count();
.count()
}
pub fn quorum_unformatted_disks(errs: &[Option<Error>]) -> bool {