Remove useless call to format

Clippy emits:

 warning: useless use of `format!`

As suggested, remove the useless call to `format!`.
This commit is contained in:
Tobin Harding 2022-01-07 09:01:01 +11:00
parent 0ad414a982
commit 35556e22f2
1 changed files with 1 additions and 1 deletions

View File

@ -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