1
Fork 0

Remove the clone function for the method

This commit is contained in:
Olivier Saut 2013-05-24 22:54:58 +02:00
parent f2125434d8
commit ff28bb7839

View file

@ -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() }
}
}