Skip to content

Commit 1f1cda6

Browse files
committed
appease tidy
1 parent d101794 commit 1f1cda6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/libstd/lazy.rs

+1-4
Original file line numberDiff line numberDiff 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.

src/libstd/sync/once.rs

+4-1
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)