File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ impl<T:Freeze + Send> Clone for Arc<T> {
148
148
* object. However, one of the `arc` objects can be sent to another task,
149
149
* allowing them to share the underlying data.
150
150
*/
151
+ #[ inline]
151
152
fn clone ( & self ) -> Arc < T > {
152
153
Arc { x : self . x . clone ( ) }
153
154
}
@@ -167,6 +168,7 @@ pub struct MutexArc<T> { priv x: UnsafeArc<MutexArcInner<T>> }
167
168
168
169
impl < T : Send > Clone for MutexArc < T > {
169
170
/// Duplicate a mutex-protected Arc. See arc::clone for more details.
171
+ #[ inline]
170
172
fn clone ( & self ) -> MutexArc < T > {
171
173
// NB: Cloning the underlying mutex is not necessary. Its reference
172
174
// count would be exactly the same as the shared state's.
@@ -349,6 +351,7 @@ pub struct RWArc<T> {
349
351
350
352
impl < T : Freeze + Send > Clone for RWArc < T > {
351
353
/// Duplicate a rwlock-protected Arc. See arc::clone for more details.
354
+ #[ inline]
352
355
fn clone ( & self ) -> RWArc < T > {
353
356
RWArc { x : self . x . clone ( ) }
354
357
}
You can’t perform that action at this time.
0 commit comments