From 0fed40fddccac2e7c73a6ca3db7ec77306a42447 Mon Sep 17 00:00:00 2001 From: Santiago Carmuega Date: Sun, 3 Dec 2023 16:52:56 -0300 Subject: [PATCH] chore(wallet): fix lint warnings --- pallas-wallet/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pallas-wallet/src/lib.rs b/pallas-wallet/src/lib.rs index cd39e356..9a673cb0 100644 --- a/pallas-wallet/src/lib.rs +++ b/pallas-wallet/src/lib.rs @@ -116,7 +116,7 @@ impl Bip32PrivateKey { pub fn from_bech32(bech32: String) -> Result { let (hrp, data, _) = bech32::decode(&bech32).map_err(Error::InvalidBech32)?; if hrp != Self::BECH32_HRP { - return Err(Error::InvalidBech32Hrp); + Err(Error::InvalidBech32Hrp) } else { let data = Vec::::from_base32(&data).map_err(Error::InvalidBech32)?; Self::from_bytes(data.try_into().map_err(|_| Error::UnexpectedBech32Length)?) @@ -166,7 +166,7 @@ impl Bip32PublicKey { pub fn from_bech32(bech32: String) -> Result { let (hrp, data, _) = bech32::decode(&bech32).map_err(Error::InvalidBech32)?; if hrp != Self::BECH32_HRP { - return Err(Error::InvalidBech32Hrp); + Err(Error::InvalidBech32Hrp) } else { let data = Vec::::from_base32(&data).map_err(Error::InvalidBech32)?; Ok(Self::from_bytes(