Skip to content

Commit bca6b50

Browse files
author
Olivier Saut
committed
---
yaml --- r: 62690 b: refs/heads/snap-stage3 c: ff28bb7 h: refs/heads/master v: v3
1 parent 6734935 commit bca6b50

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,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: f2125434d86669d3086094397855f80c2bf636ac
4+
refs/heads/snap-stage3: ff28bb7839a039641788436b21130ae2d378609b
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)