Skip to content

Commit 9b4b2fc

Browse files
author
Olivier Saut
committed
---
yaml --- r: 60685 b: refs/heads/auto c: ff28bb7 h: refs/heads/master i: 60683: 16ed275 v: v3
1 parent f2641dd commit 9b4b2fc

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
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: f2125434d86669d3086094397855f80c2bf636ac
17+
refs/heads/auto: ff28bb7839a039641788436b21130ae2d378609b
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/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)