Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Feb 1, 2023
1 parent 590601e commit c51db89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/command-response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ impl IoCmd {
expected_status: Status,
card: &mut opcard::Card<T>,
) {
println!("Command: {:x?}", input);
println!("Command: {input:x?}");
let mut rep: heapless::Vec<u8, 1024> = heapless::Vec::new();
let cmd: iso7816::Command<1024> = iso7816::Command::try_from(input).unwrap_or_else(|err| {
panic!("Bad command: {err:?}, for command: {}", hex::encode(input))
Expand All @@ -428,10 +428,10 @@ impl IoCmd {
println!("Output: {:?}\nStatus: {status:?}", hex::encode(&rep));

if !output.validate(&rep) {
panic!("Bad output. Expected {:?}", output);
panic!("Bad output. Expected {output:?}");
}
if status != expected_status {
panic!("Bad status. Expected {:?}", expected_status);
panic!("Bad status. Expected {expected_status:?}");
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/gpg-status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn gpg_card_status() {

let stdout = String::from_utf8_lossy(&output.stdout);
println!("=== stdout ===");
println!("{}", stdout);
println!("{stdout}");
println!("=== end stdout ===");

println!();
Expand Down

0 comments on commit c51db89

Please sign in to comment.