Skip to content

Commit ec9c964

Browse files
committed
Allow stuff after unconditional panic
We have an unconditional panic for some combination of features, this causes clippy to give a bunch of useless warnings. Add allow attributes to quieten down clippy.
1 parent 3bbf083 commit ec9c964

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/key.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,8 @@ impl serde::Serialize for KeyPair {
10361036
}
10371037

10381038
#[cfg(feature = "serde")]
1039+
#[allow(unused_variables)] // For `data` under some feature combinations (the unconditional panic below).
1040+
#[allow(unreachable_code)] // For `KeyPair::from_seckey_slice` after unconditional panic.
10391041
impl<'de> serde::Deserialize<'de> for KeyPair {
10401042
fn deserialize<D: serde::Deserializer<'de>>(d: D) -> Result<Self, D::Error> {
10411043
if d.is_human_readable() {

0 commit comments

Comments
 (0)