mirror of
https://github.com/atuinsh/atuin.git
synced 2025-08-17 10:31:42 +02:00
chore: some new linting (#201)
* chore: some new linting * chore: some more linting * chore: rustfmt
This commit is contained in:
@ -133,14 +133,11 @@ mod test {
|
||||
// test decryption works
|
||||
// this should pass
|
||||
match decrypt(&e1, &key1) {
|
||||
Err(e) => assert!(false, "failed to decrypt, got {}", e),
|
||||
Err(e) => panic!("failed to decrypt, got {}", e),
|
||||
Ok(h) => assert_eq!(h, history),
|
||||
};
|
||||
|
||||
// this should err
|
||||
match decrypt(&e2, &key1) {
|
||||
Ok(_) => assert!(false, "expected an error decrypting with invalid key"),
|
||||
Err(_) => {}
|
||||
};
|
||||
decrypt(&e2, &key1).expect_err("expected an error decrypting with invalid key");
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +73,6 @@ pub struct Resh {
|
||||
file: BufReader<File>,
|
||||
strbuf: String,
|
||||
loc: usize,
|
||||
counter: i64,
|
||||
}
|
||||
|
||||
impl Importer for Resh {
|
||||
@ -95,7 +94,6 @@ impl Importer for Resh {
|
||||
file: buf,
|
||||
strbuf: String::new(),
|
||||
loc,
|
||||
counter: 0,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user