mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
fmt
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user