Lint fix
This commit is contained in:
parent
df4b4bdabb
commit
f1add02672
1 changed files with 7 additions and 4 deletions
|
@ -51,10 +51,13 @@ fn main() -> Result<()> {
|
|||
|
||||
// decrypt
|
||||
print!(" Decrypt");
|
||||
let msg = std::fs::read_to_string(ciphertext).expect(&format![
|
||||
let msg =
|
||||
std::fs::read_to_string(ciphertext).unwrap_or_else(|_| {
|
||||
panic!(
|
||||
"Unable to read ciphertext from file {}",
|
||||
ciphertext
|
||||
]);
|
||||
)
|
||||
});
|
||||
|
||||
let dec_out = run_test(&mut card, test_decrypt, &[&key, &msg])?;
|
||||
println!(" {:x?}", dec_out);
|
||||
|
|
Loading…
Reference in a new issue