1
Fork 0

appease tidy

This commit is contained in:
Ashley Mannix 2020-06-30 18:36:10 +10:00
parent d1017940d7
commit 1f1cda65d9
2 changed files with 5 additions and 5 deletions

View file

@ -116,10 +116,7 @@ impl<T> SyncOnceCell<T> {
/// Creates a new empty cell.
#[unstable(feature = "once_cell", issue = "68198")]
pub const fn new() -> SyncOnceCell<T> {
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.