Skip to content

Commit a94600d

Browse files
author
Olivier Saut
committed
---
yaml --- r: 65271 b: refs/heads/master c: ff28bb7 h: refs/heads/master i: 65269: 3a1241a 65267: df1c772 65263: c94ebea v: v3
1 parent 78790b0 commit a94600d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: f2125434d86669d3086094397855f80c2bf636ac
2+
refs/heads/master: ff28bb7839a039641788436b21130ae2d378609b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/src/libextra/arc.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,20 +123,17 @@ pub impl<T:Const+Owned> ARC<T> {
123123
unsafe { &*self.x.get_immut() }
124124
}
125125
}
126+
126127
/**
127128
* Duplicate an atomically reference counted wrapper.
128129
*
129130
* The resulting two `arc` objects will point to the same underlying data
130131
* object. However, one of the `arc` objects can be sent to another task,
131132
* allowing them to share the underlying data.
132133
*/
133-
pub fn clone<T:Const + Owned>(rc: &ARC<T>) -> ARC<T> {
134-
ARC { x: rc.x.clone() }
135-
}
136-
137134
impl<T:Const + Owned> Clone for ARC<T> {
138135
fn clone(&self) -> ARC<T> {
139-
clone(self)
136+
ARC { x: self.x.clone() }
140137
}
141138
}
142139

0 commit comments

Comments
 (0)