Fixed new syntax error caused by upstream rust changes.

This commit is contained in:
Jonathan Reem 2014-06-14 15:27:06 -07:00
parent cce7510089
commit 56113c63b0

View file

@ -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<T: 'static>(&mut self, value: T) {
self.data.insert(TypeId::of::<T>(), box value as Box<Any>:'static);
self.data.insert(TypeId::of::<T>(), box value as Box<Any>);
}
/// Remove the value for the type `T` if it existed.