Merge #1136: gui: fix large enum variant clippy error

ea5d9de54b28420b0000193674528ee4f0d337bb gui: fix large enum variant clippy error (edouardparis)

Pull request description:

ACKs for top commit:
  jp1ac4:
    ACK ea5d9de54b28420b0000193674528ee4f0d337bb.

Tree-SHA512: 0c512fa2892edfc1ee177ebd4884e0880ccb6e9076533d2c7b2f4646aec3c966668a5e1f23f2cb9158e1010f4da621bdf30ee4d1a8d84bc8aad2aaa721c1756c
This commit is contained in:
edouardparis 2024-06-25 14:22:54 +02:00
commit 67d835a7b3
No known key found for this signature in database
GPG Key ID: E65F7A089C20DC8F
2 changed files with 3 additions and 3 deletions

View File

@ -44,5 +44,5 @@ pub enum Message {
PendingTransactions(Result<Vec<HistoryTransaction>, Error>),
LabelsUpdated(Result<HashMap<String, Option<String>>, Error>),
BroadcastModal(Result<HashSet<Txid>, Error>),
RbfModal(HistoryTransaction, bool, Result<HashSet<Txid>, Error>),
RbfModal(Box<HistoryTransaction>, bool, Result<HashSet<Txid>, Error>),
}

View File

@ -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),
);
}
}