Skip to content

Commit

Permalink
Merge pull request #52 from jgarzik/fmt
Browse files Browse the repository at this point in the history
mechanical:  cargo fmt
  • Loading branch information
jgarzik authored Feb 6, 2024
2 parents 8a6eabb + b3f032d commit b61af73
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,4 +724,3 @@ impl Gdbm {
Ok(Some(data))
}
}

8 changes: 2 additions & 6 deletions tests/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ extern crate rs_gdbm;

mod common;

use std::{
fs,
fs::OpenOptions,
};
use std::{fs, fs::OpenOptions};

use common::init_tests;
use rs_gdbm::{Gdbm, ExportBinMode};
use rs_gdbm::{ExportBinMode, Gdbm};

#[test]
fn api_export_bin() {
Expand Down Expand Up @@ -55,4 +52,3 @@ fn api_export_ascii() {
// into a new db, and verify that old & new dbs match.
}
}

3 changes: 1 addition & 2 deletions tests/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ extern crate rs_gdbm;

mod common;

use std::collections::HashMap;
use common::init_tests;
use rs_gdbm::Gdbm;
use std::collections::HashMap;

#[test]
fn api_exists_not() {
Expand Down Expand Up @@ -138,4 +138,3 @@ fn api_len() {
assert_eq!(res, testdb.n_records);
}
}

2 changes: 1 addition & 1 deletion tests/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ extern crate rs_gdbm;

mod common;

use std::fs;
use common::init_tests;
use rs_gdbm::Gdbm;
use std::fs;

#[test]
fn api_remove() {
Expand Down

0 comments on commit b61af73

Please sign in to comment.