Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mamcx committed Aug 11, 2023
1 parent 75b13cc commit 4e0d411
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/bench/src/spacetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn db_path(db_instance: usize) -> PathBuf {
}

pub fn open_conn(path: &PathBuf) -> ResultBench<DbResult> {
let stdb = open_db(path)?;
let stdb = open_db(path, false)?;

let tx = stdb.begin_tx();

Expand All @@ -40,7 +40,7 @@ pub fn create_db(db_instance: usize) -> ResultBench<PathBuf> {
std::fs::remove_dir_all(&path)?;
}

let stdb = open_db(&path)?;
let stdb = open_db(&path, false)?;
let mut tx = stdb.begin_tx();

stdb.create_table(
Expand Down
4 changes: 1 addition & 3 deletions crates/bench/src/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,8 @@ mod tests {
#[test]
fn test() -> ResultBench<()> {
let run = Runs::Tiny;
let mut db_instance = 0;
let path = create_db(db_instance).unwrap();
let path = create_db(0).unwrap();
let mut conn = sqlite::open_conn(&path).unwrap();
db_instance += 1;
insert_tx_per_row(&mut conn, run).unwrap();
Ok(())
}
Expand Down

0 comments on commit 4e0d411

Please sign in to comment.