From ea5d9de54b28420b0000193674528ee4f0d337bb Mon Sep 17 00:00:00 2001 From: edouardparis Date: Tue, 25 Jun 2024 12:55:31 +0200 Subject: [PATCH] gui: fix large enum variant clippy error --- gui/src/app/message.rs | 2 +- gui/src/app/state/transactions.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/src/app/message.rs b/gui/src/app/message.rs index abfd5b99b..9b9de75d1 100644 --- a/gui/src/app/message.rs +++ b/gui/src/app/message.rs @@ -44,5 +44,5 @@ pub enum Message { PendingTransactions(Result, Error>), LabelsUpdated(Result>, Error>), BroadcastModal(Result, Error>), - RbfModal(HistoryTransaction, bool, Result, Error>), + RbfModal(Box, bool, Result, Error>), } diff --git a/gui/src/app/state/transactions.rs b/gui/src/app/state/transactions.rs index 17dd74d30..30d5dec4d 100644 --- a/gui/src/app/state/transactions.rs +++ b/gui/src/app/state/transactions.rs @@ -115,7 +115,7 @@ impl State for TransactionsPanel { }, Message::RbfModal(tx, is_cancel, res) => match res { Ok(descendant_txids) => { - let modal = CreateRbfModal::new(tx, is_cancel, descendant_txids); + let modal = CreateRbfModal::new(*tx, is_cancel, descendant_txids); self.create_rbf_modal = Some(modal); } Err(e) => { @@ -169,7 +169,7 @@ impl State for TransactionsPanel { }) .map_err(|e| e.into()) }, - move |res| Message::RbfModal(tx, is_cancel, res), + move |res| Message::RbfModal(Box::new(tx), is_cancel, res), ); } }