From b3f032d69147a99451972d6b2169d067f2d1a05d Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Mon, 5 Feb 2024 21:02:30 -0500 Subject: [PATCH] mechanical: cargo fmt --- src/lib.rs | 1 - tests/export.rs | 8 ++------ tests/read.rs | 3 +-- tests/update.rs | 2 +- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4cb1a22..d0feca4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -724,4 +724,3 @@ impl Gdbm { Ok(Some(data)) } } - diff --git a/tests/export.rs b/tests/export.rs index 1593f0c..0d31813 100644 --- a/tests/export.rs +++ b/tests/export.rs @@ -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() { @@ -55,4 +52,3 @@ fn api_export_ascii() { // into a new db, and verify that old & new dbs match. } } - diff --git a/tests/read.rs b/tests/read.rs index c17c786..4a26580 100644 --- a/tests/read.rs +++ b/tests/read.rs @@ -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() { @@ -138,4 +138,3 @@ fn api_len() { assert_eq!(res, testdb.n_records); } } - diff --git a/tests/update.rs b/tests/update.rs index d56d638..b7065f5 100644 --- a/tests/update.rs +++ b/tests/update.rs @@ -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() {