diff options
author | Conrad Ludgate <conradludgate@gmail.com> | 2021-11-13 22:40:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-13 22:40:24 +0000 |
commit | 8f91b1410c2bc67e6b3da8a1927da31a9dfb09ab (patch) | |
tree | 141d8e1fab32e313c4074ebd5b85f9931f11c9df /atuin-client/src/encryption.rs | |
parent | 27d3d81afe3021e226b80a2c7734ed9a8c595641 (diff) |
chore: some new linting (#201)
* chore: some new linting
* chore: some more linting
* chore: rustfmt
Diffstat (limited to 'atuin-client/src/encryption.rs')
-rw-r--r-- | atuin-client/src/encryption.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/atuin-client/src/encryption.rs b/atuin-client/src/encryption.rs index ecb8a0c77..5721c2f9d 100644 --- a/atuin-client/src/encryption.rs +++ b/atuin-client/src/encryption.rs @@ -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"); } } |