0.10.1: Rust update
This commit is contained in:
parent
c6480a9172
commit
6a2a404af7
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "anymap"
|
name = "anymap"
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
authors = ["Chris Morgan <me@chrismorgan.info>"]
|
authors = ["Chris Morgan <me@chrismorgan.info>"]
|
||||||
description = "A safe and convenient store for one value of each type"
|
description = "A safe and convenient store for one value of each type"
|
||||||
#documentation = "http://www.rust-ci.org/chris-morgan/anymap/doc/anymap/index.html"
|
#documentation = "http://www.rust-ci.org/chris-morgan/anymap/doc/anymap/index.html"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//! This crate provides the `AnyMap` type, a safe and convenient store for one value of each type.
|
//! This crate provides the `AnyMap` type, a safe and convenient store for one value of each type.
|
||||||
|
|
||||||
#![feature(core, std_misc, convert)]
|
#![feature(core, std_misc)]
|
||||||
#![cfg_attr(test, feature(test))]
|
#![cfg_attr(test, feature(test))]
|
||||||
#![warn(missing_docs, unused_results)]
|
#![warn(missing_docs, unused_results)]
|
||||||
|
|
||||||
|
@ -346,7 +346,7 @@ mod tests {
|
||||||
*v = new_v;
|
*v = new_v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
assert_eq!(map.get().unwrap(), &B(200));
|
assert_eq!(map.get::<B>().unwrap(), &B(200));
|
||||||
assert_eq!(map.len(), 6);
|
assert_eq!(map.len(), 6);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue