Skip to content

Commit e8e305a

Browse files
committed
Placate clippy
1 parent 44b884a commit e8e305a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/verify.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub fn verify_full(
7676
AddressData::Segwit { witness_program }
7777
if witness_program.version().to_num() == 0
7878
&& witness_program.program().len() == 20
79-
&& to_sign.input.len() > 0
79+
&& !to_sign.input.is_empty()
8080
&& to_sign.input[0].witness.len() > 1 =>
8181
{
8282
let pub_key =
@@ -85,7 +85,7 @@ pub fn verify_full(
8585
verify_full_p2wpkh(address, message, to_sign, pub_key, false)
8686
}
8787
AddressData::P2sh { script_hash: _ }
88-
if to_sign.input.len() > 0 && to_sign.input[0].witness.len() > 1 =>
88+
if !to_sign.input.is_empty() && to_sign.input[0].witness.len() > 1 =>
8989
{
9090
let pub_key =
9191
PublicKey::from_slice(&to_sign.input[0].witness[1]).map_err(|_| Error::InvalidPublicKey)?;

0 commit comments

Comments
 (0)