diff options
| author | Olivier Saut <osaut@airpost.net> | 2013-05-24 22:54:58 +0200 |
|---|---|---|
| committer | Olivier Saut <osaut@airpost.net> | 2013-05-24 22:54:58 +0200 |
| commit | ff28bb7839a039641788436b21130ae2d378609b (patch) | |
| tree | dc8f2cd52b9e5b1cbde74267bc215ada0d67e3d6 /src/libextra | |
| parent | f2125434d86669d3086094397855f80c2bf636ac (diff) | |
| download | rust-ff28bb7839a039641788436b21130ae2d378609b.tar.gz rust-ff28bb7839a039641788436b21130ae2d378609b.zip | |
Remove the clone function for the method
Diffstat (limited to 'src/libextra')
| -rw-r--r-- | src/libextra/arc.rs | 7 |
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() } } } |
