Skip to content

Commit

Permalink
Merge #1136: gui: fix large enum variant clippy error
Browse files Browse the repository at this point in the history
ea5d9de gui: fix large enum variant clippy error (edouardparis)

Pull request description:

ACKs for top commit:
  jp1ac4:
    ACK ea5d9de.

Tree-SHA512: 0c512fa2892edfc1ee177ebd4884e0880ccb6e9076533d2c7b2f4646aec3c966668a5e1f23f2cb9158e1010f4da621bdf30ee4d1a8d84bc8aad2aaa721c1756c
  • Loading branch information
edouardparis committed Jun 25, 2024
2 parents ac01a68 + ea5d9de commit 67d835a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gui/src/app/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>),
}
4 changes: 2 additions & 2 deletions gui/src/app/state/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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),
);
}
}
Expand Down

0 comments on commit 67d835a

Please sign in to comment.