Skip to content

Commit

Permalink
Remove unneeded .clone() (#821)
Browse files Browse the repository at this point in the history
* Remove unnecessary `.clone()`

* Fix typo
  • Loading branch information
grtlr authored Nov 8, 2021
1 parent 09be883 commit 554b0f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bee-ledger/src/workers/consensus/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ where
.ok_or(Error::MilestoneMessageNotFound(message_id))?;

let milestone = match message.payload() {
Some(Payload::Milestone(milestone)) => milestone.clone(),
Some(Payload::Milestone(milestone)) => milestone,
_ => return Err(Error::NoMilestonePayload),
};

Expand Down
2 changes: 1 addition & 1 deletion bee-message/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub struct Message {
parents: Parents,
/// The optional [Payload] of the message.
payload: Option<Payload>,
/// The result of the Proof of Work in order fot the message to be accepted into the tangle.
/// The result of the Proof of Work in order for the message to be accepted into the tangle.
nonce: u64,
}

Expand Down

0 comments on commit 554b0f0

Please sign in to comment.