chore(deps): Replace unmaintained tempdir crate with tempfile (#3006)

Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
This commit is contained in:
iamjpotts
2024-01-22 23:16:06 -05:00
committed by GitHub
parent a7862ae416
commit 5890afe95b
3 changed files with 100 additions and 96 deletions

View File

@@ -3,10 +3,10 @@ use std::str::FromStr;
use sqlx::sqlite::SqliteQueryResult;
use sqlx::{query, Connection, SqliteConnection};
use sqlx::{sqlite::SqliteConnectOptions, ConnectOptions};
use tempdir::TempDir;
use tempfile::TempDir;
async fn new_db_url() -> anyhow::Result<(String, TempDir)> {
let dir = TempDir::new("sqlcipher_test")?;
let dir = TempDir::new()?;
let filepath = dir.path().join("database.sqlite3");
Ok((format!("sqlite://{}", filepath.display()), dir))