diff --git a/src/util/key.rs b/src/util/key.rs index 3ea21066..bbb9e0ac 100644 --- a/src/util/key.rs +++ b/src/util/key.rs @@ -411,6 +411,7 @@ impl<'de> ::serde::Deserialize<'de> for PrivateKey { #[cfg(feature = "serde")] #[cfg_attr(docsrs, doc(cfg(feature = "serde")))] +#[allow(clippy::collapsible_else_if)] // Aids readability. impl ::serde::Serialize for PublicKey { fn serialize(&self, s: S) -> Result { if s.is_human_readable() {