diff --git a/src/libextra/arc.rs b/src/libextra/arc.rs index 820b85f4544d4..123e727593568 100644 --- a/src/libextra/arc.rs +++ b/src/libextra/arc.rs @@ -123,6 +123,7 @@ pub impl ARC { unsafe { &*self.x.get_immut() } } } + /** * Duplicate an atomically reference counted wrapper. * @@ -130,13 +131,9 @@ pub impl ARC { * object. However, one of the `arc` objects can be sent to another task, * allowing them to share the underlying data. */ -pub fn clone(rc: &ARC) -> ARC { - ARC { x: rc.x.clone() } -} - impl Clone for ARC { fn clone(&self) -> ARC { - clone(self) + ARC { x: self.x.clone() } } }