diff --git a/bee-ledger/src/workers/consensus/worker.rs b/bee-ledger/src/workers/consensus/worker.rs index 6af2991109..db52924452 100644 --- a/bee-ledger/src/workers/consensus/worker.rs +++ b/bee-ledger/src/workers/consensus/worker.rs @@ -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), }; diff --git a/bee-message/src/message.rs b/bee-message/src/message.rs index a3454ca11e..75c13ed1e8 100644 --- a/bee-message/src/message.rs +++ b/bee-message/src/message.rs @@ -31,7 +31,7 @@ pub struct Message { parents: Parents, /// The optional [Payload] of the message. payload: Option, - /// 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, }