Chris Morgan
›
Git
›
anymap
› commitdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cce7510
)
commit
grep
author
committer
pickaxe
?
search:
re
Fixed new syntax error caused by upstream rust changes.
author
Jonathan Reem
<jonathan.reem@gmail.com>
Sat, 14 Jun 2014 22:27:06 +0000
committer
Jonathan Reem
<jonathan.reem@gmail.com>
Sat, 14 Jun 2014 22:27:06 +0000
src/lib.rs
patch
|
blob
|
history
diff --git
a/src/lib.rs
b/src/lib.rs
index 01297b8c8e8dba517764fe670ff615475b0e6fe5..1202332a284afbbd9a221c8ee7ea12277888231c 100644
(file)
--- 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<T: 'static>(&mut self, value: T) {
/// 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.
}
/// Remove the value for the type `T` if it existed.