diff --git a/backend/common/src/most_seen.rs b/backend/common/src/most_seen.rs index 05e59872..2d4d81ff 100644 --- a/backend/common/src/most_seen.rs +++ b/backend/common/src/most_seen.rs @@ -124,7 +124,7 @@ impl MostSeen { // Item is in the map; not the best anyway. decrement count. if let Some(count) = self.others.get_mut(item) { - *count += 1; + *count = count.saturating_sub(1); } ChangeResult::NoChange }