diff --git a/identity/src/keypair.rs b/identity/src/keypair.rs index e55fcef21e5..4876659a29b 100644 --- a/identity/src/keypair.rs +++ b/identity/src/keypair.rs @@ -382,7 +382,7 @@ impl Keypair { #[cfg(feature = "ed25519")] KeyPairInner::Ed25519(ref inner) => Some(inner.secret().to_bytes()), #[cfg(all(feature = "rsa", not(target_arch = "wasm32")))] - KeyPairInner::Rsa(_) => return None, + KeyPairInner::Rsa(_) => None, #[cfg(feature = "secp256k1")] KeyPairInner::Secp256k1(ref inner) => Some(inner.secret().to_bytes()), #[cfg(feature = "ecdsa")]