This commit is contained in:
y21
2023-05-25 20:07:20 +02:00
parent 760f91f895
commit 52c6ef77fd
+1 -3
View File
@@ -116,9 +116,7 @@ fn add_assign(&mut self, rhs: u64) {
if let Self::Used(lhs) = self {
match lhs.checked_add(rhs) {
Some(sum) => *self = Self::Used(sum),
None => {
*self = Self::Overflow;
},
None => *self = Self::Overflow,
}
}
}