about summary refs log tree commit diff
path: root/src/libextra
diff options
context:
space:
mode:
authorOlivier Saut <osaut@airpost.net>2013-05-24 22:54:58 +0200
committerOlivier Saut <osaut@airpost.net>2013-05-24 22:54:58 +0200
commitff28bb7839a039641788436b21130ae2d378609b (patch)
treedc8f2cd52b9e5b1cbde74267bc215ada0d67e3d6 /src/libextra
parentf2125434d86669d3086094397855f80c2bf636ac (diff)
downloadrust-ff28bb7839a039641788436b21130ae2d378609b.tar.gz
rust-ff28bb7839a039641788436b21130ae2d378609b.zip
Remove the clone function for the method
Diffstat (limited to 'src/libextra')
-rw-r--r--src/libextra/arc.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/libextra/arc.rs b/src/libextra/arc.rs
index 820b85f4544..123e7275935 100644
--- a/src/libextra/arc.rs
+++ b/src/libextra/arc.rs
@@ -123,6 +123,7 @@ pub impl<T:Const+Owned> ARC<T> {
         unsafe { &*self.x.get_immut() }
     }
 }
+
 /**
  * Duplicate an atomically reference counted wrapper.
  *
@@ -130,13 +131,9 @@ pub impl<T:Const+Owned> ARC<T> {
  * object. However, one of the `arc` objects can be sent to another task,
  * allowing them to share the underlying data.
  */
-pub fn clone<T:Const + Owned>(rc: &ARC<T>) -> ARC<T> {
-    ARC { x: rc.x.clone() }
-}
-
 impl<T:Const + Owned> Clone for ARC<T> {
     fn clone(&self) -> ARC<T> {
-        clone(self)
+        ARC { x: self.x.clone() }
     }
 }