From 35556e22f20a47341a6f5c3c68416713fdf354c3 Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Fri, 7 Jan 2022 09:01:01 +1100 Subject: [PATCH] Remove useless call to format Clippy emits: warning: useless use of `format!` As suggested, remove the useless call to `format!`. --- src/key.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/key.rs b/src/key.rs index e650f3d..ee52b81 100644 --- a/src/key.rs +++ b/src/key.rs @@ -1084,7 +1084,7 @@ mod test { // Zero assert_eq!(SecretKey::from_slice(&[0; 32]), Err(InvalidSecretKey)); assert_eq!( - SecretKey::from_str(&format!("0000000000000000000000000000000000000000000000000000000000000000")), + SecretKey::from_str("0000000000000000000000000000000000000000000000000000000000000000"), Err(InvalidSecretKey) ); // -1