Use OnceLock
for SingleCache
This commit is contained in:
parent
91942134c6
commit
90f5f94699
6 changed files with 21 additions and 21 deletions
|
@ -273,7 +273,7 @@ cfg_if! {
|
|||
pub use std::cell::RefMut as MappedWriteGuard;
|
||||
pub use std::cell::RefMut as MappedLockGuard;
|
||||
|
||||
pub use std::cell::OnceCell;
|
||||
pub use std::cell::OnceCell as OnceLock;
|
||||
|
||||
use std::cell::RefCell as InnerRwLock;
|
||||
|
||||
|
@ -327,7 +327,7 @@ cfg_if! {
|
|||
|
||||
pub use parking_lot::MappedMutexGuard as MappedLockGuard;
|
||||
|
||||
pub use std::sync::OnceLock as OnceCell;
|
||||
pub use std::sync::OnceLock;
|
||||
|
||||
pub use std::sync::atomic::{AtomicBool, AtomicUsize, AtomicU32, AtomicU64};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue