diff --git a/src/lib.rs b/src/lib.rs index 01297b8..1202332 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -135,7 +135,7 @@ impl AnyMap { /// Set the value contained in the map for the type `T`. /// This will override any previous value stored. pub fn insert(&mut self, value: T) { - self.data.insert(TypeId::of::(), box value as Box:'static); + self.data.insert(TypeId::of::(), box value as Box); } /// Remove the value for the type `T` if it existed.