From 1b3a917ac8f86e3c48886d4543ca5e74ec13ae4b Mon Sep 17 00:00:00 2001 From: gwenn Date: Sat, 9 Feb 2019 06:42:33 +0100 Subject: [PATCH] Fix nightly warning --- src/inner_connection.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inner_connection.rs b/src/inner_connection.rs index 9842611..499dcd6 100644 --- a/src/inner_connection.rs +++ b/src/inner_connection.rs @@ -5,7 +5,7 @@ use std::os::raw::c_int; use std::path::Path; use std::ptr; use std::str; -use std::sync::atomic::{AtomicBool, Ordering, ATOMIC_BOOL_INIT}; +use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::{Arc, Mutex, Once, ONCE_INIT}; use super::ffi; @@ -292,7 +292,7 @@ impl Drop for InnerConnection { #[cfg(not(feature = "bundled"))] static SQLITE_VERSION_CHECK: Once = ONCE_INIT; #[cfg(not(feature = "bundled"))] -pub static BYPASS_VERSION_CHECK: AtomicBool = ATOMIC_BOOL_INIT; +pub static BYPASS_VERSION_CHECK: AtomicBool = AtomicBool::new(false); #[cfg(not(feature = "bundled"))] fn ensure_valid_sqlite_version() { @@ -339,7 +339,7 @@ rusqlite was built against SQLite {} but the runtime SQLite version is {}. To fi } static SQLITE_INIT: Once = ONCE_INIT; -pub static BYPASS_SQLITE_INIT: AtomicBool = ATOMIC_BOOL_INIT; +pub static BYPASS_SQLITE_INIT: AtomicBool = AtomicBool::new(false); fn ensure_safe_sqlite_threading_mode() -> Result<()> { // Ensure SQLite was compiled in thredsafe mode.