diff options
Diffstat (limited to 'libssh2-sys/lib.rs')
-rw-r--r-- | libssh2-sys/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh2-sys/lib.rs b/libssh2-sys/lib.rs index 2428f15..3c73afb 100644 --- a/libssh2-sys/lib.rs +++ b/libssh2-sys/lib.rs @@ -720,9 +720,9 @@ fn smoke() { pub fn issue_14344_workaround() {} pub fn init() { - use std::sync::{Once, ONCE_INIT}; + use std::sync::Once; - static INIT: Once = ONCE_INIT; + static INIT: Once = Once::new(); INIT.call_once(|| unsafe { platform_init(); assert_eq!(libc::atexit(shutdown), 0); |