From 17d378e67a2115c22d96c7555da10d909aff792b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Thu, 16 May 2024 21:07:37 +0300 Subject: [PATCH] Don't bypass the version check --- src/db/store.rs | 4 ---- src/main.rs | 3 --- 2 files changed, 7 deletions(-) diff --git a/src/db/store.rs b/src/db/store.rs index af8e3eb..a33bebf 100644 --- a/src/db/store.rs +++ b/src/db/store.rs @@ -205,10 +205,6 @@ mod tests { use crate::db::models::{AccessLevel, NewShare, NewUser}; fn get_store() -> DbResult { - unsafe { - rusqlite::bypass_sqlite_version_check(); - } - let store = SqliteStore::new(Path::new(":memory:"))?; store.initialize_database()?; Ok(store) diff --git a/src/main.rs b/src/main.rs index 991b294..41b2b64 100644 --- a/src/main.rs +++ b/src/main.rs @@ -653,9 +653,6 @@ async fn run() -> Result<(), Error> { } fn main() { - unsafe { - rusqlite::bypass_sqlite_version_check(); - } let rt = Runtime::new().expect("cannot start runtime"); rt.block_on(async move { run().await }).unwrap(); }