@@ -182,11 +182,11 @@ impl<T:Send> MutexArc<T> {
182
182
* Create a mutex-protected Arc with the supplied data and a specified number
183
183
* of condvars (as sync::Mutex::new_with_condvars).
184
184
*/
185
- pub fn new_with_condvars ( user_data : T ,
186
- num_condvars : uint ) -> MutexArc < T > {
187
- let data =
188
- MutexArcInner { lock : Mutex :: new_with_condvars ( num_condvars ) ,
189
- failed : false , data : user_data } ;
185
+ pub fn new_with_condvars ( user_data : T , num_condvars : uint ) -> MutexArc < T > {
186
+ let data = MutexArcInner {
187
+ lock : Mutex :: new_with_condvars ( num_condvars ) ,
188
+ failed : false , data : user_data
189
+ } ;
190
190
MutexArc { x : UnsafeAtomicRcBox :: new ( data) }
191
191
}
192
192
@@ -333,9 +333,10 @@ impl<T:Freeze + Send> RWArc<T> {
333
333
* of condvars (as sync::RWLock::new_with_condvars).
334
334
*/
335
335
pub fn new_with_condvars(user_data: T, num_condvars: uint) -> RWArc<T> {
336
- let data =
337
- RWArcInner { lock: RWLock::new_with_condvars(num_condvars),
338
- failed: false, data: user_data };
336
+ let data = RWArcInner {
337
+ lock: RWLock::new_with_condvars(num_condvars),
338
+ failed: false, data: user_data
339
+ };
339
340
RWArc { x: UnsafeAtomicRcBox::new(data), }
340
341
}
341
342
0 commit comments