Skip to content

Commit 6943ca8

Browse files
committed
make DeepClone inherit from Clone
1 parent 421c631 commit 6943ca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/clone.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ extern_fn_clone!(A, B, C, D, E, F, G, H)
133133

134134
/// A trait distinct from `Clone` which represents "deep copies" of things like
135135
/// managed boxes which would otherwise not be copied.
136-
pub trait DeepClone {
136+
pub trait DeepClone: Clone {
137137
/// Return a deep copy of the value. Unlike `Clone`, the contents of shared pointer types
138138
/// *are* copied.
139139
fn deep_clone(&self) -> Self;

0 commit comments

Comments
 (0)