From ff28bb7839a039641788436b21130ae2d378609b Mon Sep 17 00:00:00 2001 From: Olivier Saut Date: Fri, 24 May 2013 22:54:58 +0200 Subject: [PATCH] Remove the clone function for the method --- src/libextra/arc.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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() } } }