diff --git a/world/src/util/map_vec.rs b/world/src/util/map_vec.rs index b204e6f8c4..56d3a286ae 100644 --- a/world/src/util/map_vec.rs +++ b/world/src/util/map_vec.rs @@ -63,13 +63,12 @@ impl MapVec { pub fn get(&self, entry: K) -> &T { self.entries.get(&entry).unwrap_or(&self.default) } - #[allow(clippy::clone_on_copy)] // TODO: Pending review in #587 pub fn map(self, mut f: impl FnMut(K, T) -> U) -> MapVec { MapVec { entries: self .entries .into_iter() - .map(|(s, v)| (s.clone(), f(s, v))) + .map(|(s, v)| (s, f(s, v))) .collect(), default: U::default(), }