examples: remove a few .clone() calls

This commit is contained in:
Astro 2019-09-09 14:57:08 +02:00
commit fd27582ac7
2 changed files with 13 additions and 12 deletions

View file

@ -57,7 +57,7 @@ fn main() {
{
match (message.from, message.bodies.get("")) {
(Some(ref from), Some(ref body)) if body.0 == "die" => {
println!("Secret die command triggered by {}", from.clone());
println!("Secret die command triggered by {}", from);
wait_for_stream_end = true;
tx.start_send(Packet::StreamEnd).unwrap();
}