From: Chris Morgan Date: Wed, 15 Apr 2015 04:16:10 +0000 (+1000) Subject: 0.10.2: Rust update for clone feature X-Git-Tag: 0.10.2 X-Git-Url: https://git.chrismorgan.info/anymap/commitdiff_plain/d04bde350985dffbdcb8cb65ab0be70f7ae036bd 0.10.2: Rust update for clone feature --- 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 {