Skip to content

Commit f861ccb

Browse files
committed
refine to 1 line
1 parent 1350d79 commit f861ccb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

zingolib/src/lightclient/propose.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,7 @@ impl LightClient {
253253
}
254254
/// A helper method that standardizes latest_proposal update
255255
async fn update_latest_proposal(&self, proposal: crate::data::proposal::ZingoProposal) {
256-
let mut latest_proposal_lock = self.latest_proposal.write().await;
257-
*latest_proposal_lock = Some(proposal.clone());
256+
*(self.latest_proposal.write().await) = Some(proposal.clone());
258257
}
259258
}
260259
#[cfg(test)]

0 commit comments

Comments
 (0)