Skip to content

Commit

Permalink
fix clippy fiascoes introduced in #1437
Browse files Browse the repository at this point in the history
  • Loading branch information
LesnyRumcajs committed Feb 17, 2022
1 parent 6298815 commit 2edd557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ mod tests {
let mut secp_addr = Address::new_secp256k1(&pub_key.serialize()).unwrap();
for network in [Network::Mainnet, Network::Testnet] {
let address = secp_addr.set_network(network);
assert!(verify_secp256k1_sig(&signature, &data, &address).is_ok());
assert!(verify_secp256k1_sig(&signature, &data, address).is_ok());
}
}

Expand Down Expand Up @@ -314,7 +314,7 @@ mod tests {
}

fn generate_signature(priv_key: &SecretKey, msg: &Message) -> [u8; 65] {
let (sig, recovery_id) = sign(&msg, &priv_key);
let (sig, recovery_id) = sign(msg, priv_key);
let mut signature = [0; 65];
signature[..64].copy_from_slice(&sig.serialize());
signature[64] = recovery_id.serialize();
Expand Down

0 comments on commit 2edd557

Please sign in to comment.