File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
14
14
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
15
15
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
16
16
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17
- refs/heads/auto: f2125434d86669d3086094397855f80c2bf636ac
17
+ refs/heads/auto: ff28bb7839a039641788436b21130ae2d378609b
18
18
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
19
19
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
Original file line number Diff line number Diff line change @@ -123,20 +123,17 @@ pub impl<T:Const+Owned> ARC<T> {
123
123
unsafe { & * self . x . get_immut ( ) }
124
124
}
125
125
}
126
+
126
127
/**
127
128
* Duplicate an atomically reference counted wrapper.
128
129
*
129
130
* The resulting two `arc` objects will point to the same underlying data
130
131
* object. However, one of the `arc` objects can be sent to another task,
131
132
* allowing them to share the underlying data.
132
133
*/
133
- pub fn clone < T : Const + Owned > ( rc : & ARC < T > ) -> ARC < T > {
134
- ARC { x : rc. x . clone ( ) }
135
- }
136
-
137
134
impl < T : Const + Owned > Clone for ARC < T > {
138
135
fn clone ( & self ) -> ARC < T > {
139
- clone ( self )
136
+ ARC { x : self . x . clone ( ) }
140
137
}
141
138
}
142
139
You can’t perform that action at this time.
0 commit comments