From aee98fce27f9960ece2e276b9a20f35d5e1fc26c Mon Sep 17 00:00:00 2001 From: Michal Nazarewicz Date: Fri, 25 Oct 2024 03:13:37 +0200 Subject: [PATCH] fix clippy --- solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs b/solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs index c688e1f7..cbbddbdc 100644 --- a/solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs +++ b/solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs @@ -418,7 +418,7 @@ fn call_bridge_escrow( // The relayer would parse the memo and pass the relevant accounts The // intent_id and memo needs to be stripped let (intent_id, memo) = - parse_bridge_memo(&data.memo.as_ref()).ok_or_else(|| { + parse_bridge_memo(data.memo.as_ref()).ok_or_else(|| { let err = ibc::TokenTransferError::Other("Invalid memo".into()); ibc::AcknowledgementStatus::error(err.into()) })?;