X-Git-Url: https://git.chrismorgan.info/anymap/blobdiff_plain/c6480a91723804547a8cc99a2066f64436008abe..18518214c4609e182be5277b14c7c510c8fa9505:/src/with_clone.rs 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 {