datastructures: replace once_cell
crate with an impl from std
This commit is contained in:
parent
85fbf49ce0
commit
68500ffacb
8 changed files with 7 additions and 4 deletions
|
@ -26,6 +26,7 @@
|
|||
#![feature(extend_one)]
|
||||
#![feature(const_panic)]
|
||||
#![feature(const_generics)]
|
||||
#![feature(once_cell)]
|
||||
#![allow(rustc::default_hash_types)]
|
||||
|
||||
#[macro_use]
|
||||
|
|
|
@ -229,7 +229,7 @@ cfg_if! {
|
|||
pub use std::cell::RefMut as LockGuard;
|
||||
pub use std::cell::RefMut as MappedLockGuard;
|
||||
|
||||
pub use once_cell::unsync::OnceCell;
|
||||
pub use std::lazy::OnceCell;
|
||||
|
||||
use std::cell::RefCell as InnerRwLock;
|
||||
use std::cell::RefCell as InnerLock;
|
||||
|
@ -314,7 +314,7 @@ cfg_if! {
|
|||
pub use parking_lot::MutexGuard as LockGuard;
|
||||
pub use parking_lot::MappedMutexGuard as MappedLockGuard;
|
||||
|
||||
pub use once_cell::sync::OnceCell;
|
||||
pub use std::lazy::SyncOnceCell as OnceCell;
|
||||
|
||||
pub use std::sync::atomic::{AtomicBool, AtomicUsize, AtomicU32, AtomicU64};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue