Skip to content

Commit

Permalink
fix(clippy): fix clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel-faber authored and dirvine committed Jul 1, 2021
1 parent 24b2bc5 commit 53de7a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/p2p_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async fn main() -> Result<()> {
// loop over incoming messages
while let Some((socket_addr, bytes)) = incoming_messages.next().await {
println!("Received from {:?} --> {:?}", socket_addr, bytes);
if bytes == Bytes::from(MSG_MARCO) {
if bytes == *MSG_MARCO {
let reply = Bytes::from(MSG_POLO);
node.send_message(reply.clone(), &socket_addr).await?;
println!("Replied to {:?} --> {:?}", socket_addr, reply);
Expand Down

0 comments on commit 53de7a9

Please sign in to comment.