From d04bde350985dffbdcb8cb65ab0be70f7ae036bd Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Wed, 15 Apr 2015 14:16:10 +1000 Subject: [PATCH] 0.10.2: Rust update for clone feature --- Cargo.toml | 2 +- src/with_clone.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 351851e..4975bd0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anymap" -version = "0.10.1" +version = "0.10.2" 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/with_clone.rs b/src/with_clone.rs index 71b3aea..7bdb5b0 100644 --- a/src/with_clone.rs +++ b/src/with_clone.rs @@ -6,7 +6,7 @@ pub trait CloneToAny { fn clone_to_any(&self) -> Box; } -impl CloneToAny for T { +impl CloneToAny for T { fn clone_to_any(&self) -> Box { Box::new(self.clone()) } @@ -16,7 +16,7 @@ impl CloneToAny for T { /// Pretty much just `std::any::Any + Clone`. pub trait Any: ::std::any::Any + CloneToAny { } -impl Any for T { } +impl Any for T { } impl Clone for Box { fn clone(&self) -> Box { -- 2.42.0