Skip to content

Commit fd694bb

Browse files
Revert "appease tidy"
This reverts commit 1f1cda6.
1 parent 2d907bb commit fd694bb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/libstd/lazy.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ 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 { once: Once::new(), value: UnsafeCell::new(MaybeUninit::uninit()) }
119+
SyncOnceCell {
120+
once: Once::new(),
121+
value: UnsafeCell::new(MaybeUninit::uninit()),
122+
}
120123
}
121124

122125
/// Gets the reference to the underlying value.

src/libstd/sync/once.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,7 @@ impl Once {
414414
};
415415
// Run the initialization function, letting it know if we're
416416
// poisoned or not.
417-
let init_state = OnceState {
418-
poisoned: state_and_queue == POISONED,
419-
set_state_on_drop_to: Cell::new(COMPLETE),
420-
};
417+
let init_state = OnceState { poisoned: state_and_queue == POISONED, set_state_on_drop_to: Cell::new(COMPLETE) };
421418
init(&init_state);
422419
waiter_queue.set_state_on_drop_to = init_state.set_state_on_drop_to.get();
423420
break;

0 commit comments

Comments
 (0)