From 1f1cda65d9a5c88855d3fbcb3912095474e557de Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Tue, 30 Jun 2020 18:36:10 +1000 Subject: [PATCH] appease tidy --- src/libstd/lazy.rs | 5 +---- src/libstd/sync/once.rs | 5 ++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libstd/lazy.rs b/src/libstd/lazy.rs index 761cc2b439f..094eff17f89 100644 --- a/src/libstd/lazy.rs +++ b/src/libstd/lazy.rs @@ -116,10 +116,7 @@ impl SyncOnceCell { /// Creates a new empty cell. #[unstable(feature = "once_cell", issue = "68198")] pub const fn new() -> SyncOnceCell { - SyncOnceCell { - once: Once::new(), - value: UnsafeCell::new(MaybeUninit::uninit()), - } + SyncOnceCell { once: Once::new(), value: UnsafeCell::new(MaybeUninit::uninit()) } } /// Gets the reference to the underlying value. diff --git a/src/libstd/sync/once.rs b/src/libstd/sync/once.rs index 1fce5dc0352..64260990824 100644 --- a/src/libstd/sync/once.rs +++ b/src/libstd/sync/once.rs @@ -414,7 +414,10 @@ impl Once { }; // Run the initialization function, letting it know if we're // poisoned or not. - let init_state = OnceState { poisoned: state_and_queue == POISONED, set_state_on_drop_to: Cell::new(COMPLETE) }; + let init_state = OnceState { + poisoned: state_and_queue == POISONED, + set_state_on_drop_to: Cell::new(COMPLETE), + }; init(&init_state); waiter_queue.set_state_on_drop_to = init_state.set_state_on_drop_to.get(); break;