From ae2627c3e2e0a94a66723391ff8c181669b52e46 Mon Sep 17 00:00:00 2001 From: gupnik <17176722+gupnik@users.noreply.github.com> Date: Fri, 3 Jan 2025 12:05:07 +0530 Subject: [PATCH] Makes clippy happy --- rust/chains/tw_aptos/src/transaction_payload.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/chains/tw_aptos/src/transaction_payload.rs b/rust/chains/tw_aptos/src/transaction_payload.rs index dead694fa32..c3aed2ed346 100644 --- a/rust/chains/tw_aptos/src/transaction_payload.rs +++ b/rust/chains/tw_aptos/src/transaction_payload.rs @@ -157,7 +157,7 @@ fn parse_argument(val: &str, abi_str: &str) -> EncodingResult TransactionArgument::Address( AccountAddress::from_hex_literal(val).map_err(|_| EncodingError::InvalidInput)?, ), - MoveType::Vector { items } => parse_vector_argument(val, items)?, + MoveType::Vector { items } => parse_vector_argument(val, *items)?, _ => { return Err(EncodingError::InvalidInput); }, @@ -166,10 +166,10 @@ fn parse_argument(val: &str, abi_str: &str) -> EncodingResult, + layout: MoveType, ) -> EncodingResult { let val = serde_json::to_value(val_str).map_err(|_| EncodingError::InvalidInput)?; - if matches!(*layout, MoveType::U8) { + if matches!(layout, MoveType::U8) { Ok(TransactionArgument::U8Vector( val_str .decode_hex()