File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -116,10 +116,7 @@ impl<T> SyncOnceCell<T> {
116116 /// Creates a new empty cell.
117117 #[ unstable( feature = "once_cell" , issue = "68198" ) ]
118118 pub const fn new ( ) -> SyncOnceCell < T > {
119- SyncOnceCell {
120- once : Once :: new ( ) ,
121- value : UnsafeCell :: new ( MaybeUninit :: uninit ( ) ) ,
122- }
119+ SyncOnceCell { once : Once :: new ( ) , value : UnsafeCell :: new ( MaybeUninit :: uninit ( ) ) }
123120 }
124121
125122 /// Gets the reference to the underlying value.
Original file line number Diff line number Diff line change @@ -414,7 +414,10 @@ impl Once {
414414 } ;
415415 // Run the initialization function, letting it know if we're
416416 // poisoned or not.
417- let init_state = OnceState { poisoned : state_and_queue == POISONED , set_state_on_drop_to : Cell :: new ( COMPLETE ) } ;
417+ let init_state = OnceState {
418+ poisoned : state_and_queue == POISONED ,
419+ set_state_on_drop_to : Cell :: new ( COMPLETE ) ,
420+ } ;
418421 init ( & init_state) ;
419422 waiter_queue. set_state_on_drop_to = init_state. set_state_on_drop_to . get ( ) ;
420423 break ;
You can’t perform that action at this time.
0 commit comments