Skip to content

Commit 35556e2

Browse files
committed
Remove useless call to format
Clippy emits: warning: useless use of `format!` As suggested, remove the useless call to `format!`.
1 parent 0ad414a commit 35556e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ mod test {
10841084
// Zero
10851085
assert_eq!(SecretKey::from_slice(&[0; 32]), Err(InvalidSecretKey));
10861086
assert_eq!(
1087-
SecretKey::from_str(&format!("0000000000000000000000000000000000000000000000000000000000000000")),
1087+
SecretKey::from_str("0000000000000000000000000000000000000000000000000000000000000000"),
10881088
Err(InvalidSecretKey)
10891089
);
10901090
// -1

0 commit comments

Comments
 (0)