use field init shorthand EVERYWHERE
Like #43008 (f668999
), but _much more aggressive_.
This commit is contained in:
parent
82be83cf74
commit
1b6c9605e4
281 changed files with 1376 additions and 1376 deletions
|
@ -278,7 +278,7 @@ impl<T> Arc<T> {
|
|||
let x: Box<_> = box ArcInner {
|
||||
strong: atomic::AtomicUsize::new(1),
|
||||
weak: atomic::AtomicUsize::new(1),
|
||||
data: data,
|
||||
data,
|
||||
};
|
||||
Arc { ptr: Shared::from(Box::into_unique(x)) }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue