Skip to content

Commit 5cb5988

Browse files
authored
changes to lazy/once cell for 1.63+ (#138)
1 parent 43ed207 commit 5cb5988

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/interface/errnos.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// Error handling for SafePOSIX
33
use crate::interface;
44

5-
use std::lazy::SyncOnceCell;
5+
use std::sync::OnceLock;
66

7-
pub static VERBOSE: SyncOnceCell<isize> = SyncOnceCell::new();
7+
pub static VERBOSE: OnceLock<isize> = OnceLock::new();
88

99

1010
//A macro which takes the enum and adds to it a try_from trait which can convert values back to

src/interface/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::slice;
1212
pub use std::path::{PathBuf as RustPathBuf, Path as RustPath, Component as RustPathComponent};
1313
pub use std::ffi::CStr as RustCStr;
1414
use std::io::{SeekFrom, Seek, Read, Write};
15-
pub use std::lazy::{SyncLazy as RustLazyGlobal};
15+
pub use std::sync::{LazyLock as RustLazyGlobal};
1616

1717
use std::os::unix::io::{AsRawFd, RawFd};
1818
use libc::{mmap, mremap, munmap, PROT_READ, PROT_WRITE, MAP_SHARED, MREMAP_MAYMOVE};

0 commit comments

Comments
 (0)