about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorAshley Mannix <ashleymannix@live.com.au>2020-06-30 18:36:10 +1000
committerAshley Mannix <ashleymannix@live.com.au>2020-07-17 07:25:32 +1000
commit1f1cda65d9a5c88855d3fbcb3912095474e557de (patch)
tree4dd79785212c00f84285ae6253e9186ac67c44aa /src/libstd/sync
parentd1017940d77f35f841008c3e108e3da5e48a592f (diff)
downloadrust-1f1cda65d9a5c88855d3fbcb3912095474e557de.tar.gz
rust-1f1cda65d9a5c88855d3fbcb3912095474e557de.zip
appease tidy
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/once.rs5
1 files changed, 4 insertions, 1 deletions
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;