Skip to content

Commit f71d632

Browse files
committed
tests: Address a Clippy nit.
1 parent 63d50b3 commit f71d632

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/agreement_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn agreement_traits() {
3838
test::compile_time_assert_sync::<agreement::EphemeralPrivateKey>();
3939

4040
assert_eq!(
41-
format!("{:?}", &private_key),
41+
format!("{:?}", private_key),
4242
"EphemeralPrivateKey { algorithm: Algorithm { curve: P256 } }"
4343
);
4444

tests/hmac_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ fn hmac_test_case_inner(
104104
#[test]
105105
fn hmac_debug() {
106106
let key = hmac::Key::new(hmac::HMAC_SHA256, &[0; 32]);
107-
assert_eq!("Key { algorithm: SHA256 }", format!("{:?}", &key));
107+
assert_eq!("Key { algorithm: SHA256 }", format!("{:?}", key));
108108

109109
let ctx = hmac::Context::with_key(&key);
110-
assert_eq!("Context { algorithm: SHA256 }", format!("{:?}", &ctx));
110+
assert_eq!("Context { algorithm: SHA256 }", format!("{:?}", ctx));
111111
}

0 commit comments

Comments
 (0)