Skip to content

Commit b131bf9

Browse files
committed
cargo fmt
1 parent 047bb88 commit b131bf9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/store/weight.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,10 @@ where
560560
/// ```
561561
pub fn remove(&mut self, key: &K) -> Option<Arc<V>> {
562562
let entry = self.map.remove(key)?;
563-
debug_assert!(self.total_weight >= entry.weight, "total_weight underflow in remove");
563+
debug_assert!(
564+
self.total_weight >= entry.weight,
565+
"total_weight underflow in remove"
566+
);
564567
self.total_weight = self.total_weight.saturating_sub(entry.weight);
565568
self.metrics.inc_remove();
566569
Some(entry.value)

0 commit comments

Comments
 (0)