From ef020b03ce9b48b368dc36f0fa81e72ebfdc4948 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sat, 3 Jan 2015 19:29:37 +1100 Subject: [PATCH] 0.9.6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Changed the deprecated `#[deriving(…)]` to `#[derive(…)]`. (Why not 0.9.5? I messed up, publishing the `clone` branch as 0.9.5.) --- Cargo.toml | 2 +- src/lib.rs | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index af7654b..67a0be7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anymap" -version = "0.9.4" +version = "0.9.6" authors = ["Chris Morgan "] 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" diff --git a/src/lib.rs b/src/lib.rs index 0e92822..16644bf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -114,7 +114,7 @@ impl UncheckedBoxAny for Box { /// data.remove::(); /// assert_eq!(data.get::(), None); /// -/// #[deriving(PartialEq, Show)] +/// #[derive(PartialEq, Show)] /// struct Foo { /// str: String, /// } @@ -295,13 +295,13 @@ fn bench_get_present(b: &mut ::test::Bencher) { #[test] fn test_entry() { - #[deriving(Show, PartialEq)] struct A(int); - #[deriving(Show, PartialEq)] struct B(int); - #[deriving(Show, PartialEq)] struct C(int); - #[deriving(Show, PartialEq)] struct D(int); - #[deriving(Show, PartialEq)] struct E(int); - #[deriving(Show, PartialEq)] struct F(int); - #[deriving(Show, PartialEq)] struct J(int); + #[derive(Show, PartialEq)] struct A(int); + #[derive(Show, PartialEq)] struct B(int); + #[derive(Show, PartialEq)] struct C(int); + #[derive(Show, PartialEq)] struct D(int); + #[derive(Show, PartialEq)] struct E(int); + #[derive(Show, PartialEq)] struct F(int); + #[derive(Show, PartialEq)] struct J(int); let mut map: AnyMap = AnyMap::new(); assert_eq!(map.insert(A(10)), None); -- 2.42.0