From b36db49696d71dde61607be68c732b09d376fc8e Mon Sep 17 00:00:00 2001 From: Willem Wyndham Date: Mon, 2 Dec 2024 09:57:56 -0500 Subject: [PATCH] fix: PR review --- cmd/soroban-cli/src/config/key.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/soroban-cli/src/config/key.rs b/cmd/soroban-cli/src/config/key.rs index 6c5b99a5d..dcb96775b 100644 --- a/cmd/soroban-cli/src/config/key.rs +++ b/cmd/soroban-cli/src/config/key.rs @@ -7,14 +7,14 @@ use crate::xdr; #[derive(thiserror::Error, Debug)] pub enum Error { - #[error("failed to extract public key from secret")] + #[error("failed to extract secret from public key ")] SecretPublicKey, #[error(transparent)] Secret(#[from] secret::Error), #[error(transparent)] StrKey(#[from] stellar_strkey::DecodeError), - #[error("failed to parse key {0}")] - Parse(String), + #[error("failed to parse key")] + Parse, } #[derive(Debug, Serialize, Deserialize, PartialEq, Eq)] @@ -68,7 +68,7 @@ impl FromStr for Key { if let Ok(muxed_account) = s.parse() { return Ok(Key::MuxedAccount { muxed_account }); } - Err(Error::Parse(s.to_owned())) + Err(Error::Parse) } }