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:
parent
0ad414a982
commit
35556e22f2
|
@ -1084,7 +1084,7 @@ mod test {
|
||||||
// Zero
|
// Zero
|
||||||
assert_eq!(SecretKey::from_slice(&[0; 32]), Err(InvalidSecretKey));
|
assert_eq!(SecretKey::from_slice(&[0; 32]), Err(InvalidSecretKey));
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
SecretKey::from_str(&format!("0000000000000000000000000000000000000000000000000000000000000000")),
|
SecretKey::from_str("0000000000000000000000000000000000000000000000000000000000000000"),
|
||||||
Err(InvalidSecretKey)
|
Err(InvalidSecretKey)
|
||||||
);
|
);
|
||||||
// -1
|
// -1
|
||||||
|
|
Loading…
Reference in New Issue