chore: linting warns removed

This commit is contained in:
Jack Wills
2022-08-04 13:29:09 +00:00
parent 0e11767db8
commit 258ada731b
4 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ impl Ord for CpuStats {
fn cmp(&self, other: &Self) -> Ordering {
if self.value > other.value {
Ordering::Greater
} else if self.value == other.value {
} else if (self.value - other.value).abs() < 0.01 {
Ordering::Equal
} else {
Ordering::Less