mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-16 22:02:26 +08:00
Fix clippy warnings
This commit is contained in:
@@ -430,15 +430,13 @@ fn ensure_safe_sqlite_threading_mode() -> Result<()> {
|
||||
}
|
||||
|
||||
unsafe {
|
||||
if ffi::sqlite3_config(ffi::SQLITE_CONFIG_MULTITHREAD) != ffi::SQLITE_OK || ffi::sqlite3_initialize() != ffi::SQLITE_OK {
|
||||
panic!(
|
||||
assert!(ffi::sqlite3_config(ffi::SQLITE_CONFIG_MULTITHREAD) == ffi::SQLITE_OK && ffi::sqlite3_initialize() == ffi::SQLITE_OK,
|
||||
"Could not ensure safe initialization of SQLite.\n\
|
||||
To fix this, either:\n\
|
||||
* Upgrade SQLite to at least version 3.7.0\n\
|
||||
* Ensure that SQLite has been initialized in Multi-thread or Serialized mode and call\n\
|
||||
rusqlite::bypass_sqlite_initialization() prior to your first connection attempt."
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
Ok(())
|
||||
|
Reference in New Issue
Block a user