From: Chris Morgan Date: Sun, 15 Jun 2014 05:54:32 +0000 (+1000) Subject: Merge pull request #1 from reem/deprecated-lint X-Git-Tag: 0.9.1~22 X-Git-Url: https://git.chrismorgan.info/anymap/commitdiff_plain/f64b6b015b526d2e060b02b2570de555b41a28ca?hp=cce7510089ba1401c49062465ecf47810b70e7ec Merge pull request #1 from reem/deprecated-lint Remove deprecated lint for ~[T]s --- diff --git a/src/lib.rs b/src/lib.rs index 01297b8..d0bce3c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,7 @@ #![feature(default_type_params)] #![warn(unnecessary_qualification, non_uppercase_statics, variant_size_difference, managed_heap_memory, unnecessary_typecast, - missing_doc, unused_result, deprecated_owned_vector)] + missing_doc, unused_result)] #[cfg(test)] extern crate test; @@ -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.