mirror of
https://gitlab.com/hagrid-keyserver/hagrid.git
synced 2023-02-13 20:55:02 -05:00
fix warnings when compiling tests
This commit is contained in:
parent
9dfb78746a
commit
b189bcf127
3 changed files with 2 additions and 4 deletions
|
@ -229,7 +229,7 @@ mod tests {
|
|||
#[test]
|
||||
fn new() {
|
||||
let tmpdir = TempDir::new().unwrap();
|
||||
let mut db = Filesystem::new(tmpdir.path()).unwrap();
|
||||
let db = Filesystem::new(tmpdir.path()).unwrap();
|
||||
let k1 = TPKBuilder::default().add_userid("a").generate().unwrap();
|
||||
let k2 = TPKBuilder::default().add_userid("b").generate().unwrap();
|
||||
let k3 = TPKBuilder::default().add_userid("c").generate().unwrap();
|
||||
|
|
|
@ -104,7 +104,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn new() {
|
||||
let mut db = Memory::default();
|
||||
let db = Memory::default();
|
||||
let k1 = TPKBuilder::default().add_userid("a").generate().unwrap();
|
||||
let k2 = TPKBuilder::default().add_userid("b").generate().unwrap();
|
||||
let k3 = TPKBuilder::default().add_userid("c").generate().unwrap();
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
// fetch by uid & fpr
|
||||
|
||||
use std::convert::TryFrom;
|
||||
use std::thread;
|
||||
use std::sync::atomic::{Ordering, AtomicBool};
|
||||
use std::str::FromStr;
|
||||
|
||||
use database::Database;
|
||||
|
|
Loading…
Reference in a new issue