From b7635a71c83aa88b221c59b647e7f72af5a5d249 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sun, 12 Jan 2020 11:09:15 +0300 Subject: [PATCH] Do not call unsafe rusqlite::ffi::sqlite3_threadsafe() rusqlite already checks that SQLite is safe to use in multi-threaded mode when it opens the database and returns rusqlite::Error::SqliteSingleThreadedMode otherwise. --- src/context.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/context.rs b/src/context.rs index 5b3405fc9..29a858c55 100644 --- a/src/context.rs +++ b/src/context.rs @@ -75,10 +75,6 @@ pub fn get_info() -> HashMap<&'static str, String> { let mut res = HashMap::new(); res.insert("deltachat_core_version", format!("v{}", &*DC_VERSION_STR)); res.insert("sqlite_version", rusqlite::version().to_string()); - res.insert( - "sqlite_thread_safe", - unsafe { rusqlite::ffi::sqlite3_threadsafe() }.to_string(), - ); res.insert("arch", (std::mem::size_of::() * 8).to_string()); res.insert("level", "awesome".into()); res