From 56113c63b028e7d215f1c16cf90d9c5d902df477 Mon Sep 17 00:00:00 2001 From: Jonathan Reem Date: Sat, 14 Jun 2014 15:27:06 -0700 Subject: [PATCH 1/2] Fixed new syntax error caused by upstream rust changes. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From d51aff506409d7ffa2de275cd4e3029a88de1e2a Mon Sep 17 00:00:00 2001 From: Jonathan Reem Date: Sat, 14 Jun 2014 14:08:21 -0700 Subject: [PATCH 2/2] Remove deprecated lint for ~[T]s --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 1202332..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;