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 1
1
---
2
- refs/heads/master: f2125434d86669d3086094397855f80c2bf636ac
2
+ refs/heads/master: ff28bb7839a039641788436b21130ae2d378609b
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
5
5
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
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