Skip to content

Commit

Permalink
Don't bypass the version check
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed May 16, 2024
1 parent 2e143b6 commit 17d378e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/db/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,6 @@ mod tests {
use crate::db::models::{AccessLevel, NewShare, NewUser};

fn get_store() -> DbResult<SqliteStore> {
unsafe {
rusqlite::bypass_sqlite_version_check();
}

let store = SqliteStore::new(Path::new(":memory:"))?;
store.initialize_database()?;
Ok(store)
Expand Down
3 changes: 0 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 17d378e

Please sign in to comment.