Skip to content

Commit 06b010a

Browse files
committed
remove clippy::assertions_on_constants
1 parent 5694877 commit 06b010a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

stacks-common/src/util/secp256k1/native.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -609,22 +609,19 @@ mod tests {
609609
let key = Secp256k1PublicKey::from_hex(fixture.public_key).unwrap();
610610
let signature = MessageSignature::from_raw(&hex_bytes(fixture.signature).unwrap());
611611
let ver_res = key.verify(&hex_bytes(fixture.data).unwrap(), &signature);
612-
#[allow(clippy::assertions_on_constants)]
613612
match (ver_res, fixture.result) {
614613
(Ok(true), Ok(true)) => {}
615614
(Ok(false), Ok(false)) => {}
616615
(Err(e1), Err(e2)) => assert_eq!(e1, e2),
617616
(Err(e1), _) => {
618617
test_debug!("Failed to verify signature: {}", e1);
619-
assert!(
620-
false,
618+
panic!(
621619
"failed fixture (verification: {:?}): {:#?}",
622620
&ver_res, &fixture
623621
);
624622
}
625623
(_, _) => {
626-
assert!(
627-
false,
624+
panic!(
628625
"failed fixture (verification: {:?}): {:#?}",
629626
&ver_res, &fixture
630627
);

0 commit comments

Comments
 (0)