set_forwarded needs mut ref (#33203)

This commit is contained in:
Andrew Fitzgerald 2023-09-11 09:34:48 -07:00 committed by GitHub
parent 4f4ce69f5f
commit 297ffad797
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ impl TransactionState {
}
/// Sets the transaction as forwarded.
pub(crate) fn set_forwarded(&self) {
pub(crate) fn set_forwarded(&mut self) {
match self {
Self::Unprocessed { forwarded, .. } => *forwarded = true,
Self::Pending { forwarded, .. } => *forwarded = true,