summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-02-07 09:16:25 +0100
committerMatthias Beyer <matthias.beyer@ifm.com>2022-02-14 10:12:03 +0100
commit29ff21642f5aba4bf959a2e03476233b81eaa3d4 (patch)
treeec98f3a34832d4ebf47be0810f3212d6be7a54e8
parent379ea3fcdaccf2aec01b24d16c485d4bcabd9a58 (diff)
Remove unnecessary call of .to_string()
This fixes clippy lint `clippy::redundant_clone`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r--crates/tests/mqtt_tests/src/test_mqtt_client.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/tests/mqtt_tests/src/test_mqtt_client.rs b/crates/tests/mqtt_tests/src/test_mqtt_client.rs
index 9d0909cb..3fb5730c 100644
--- a/crates/tests/mqtt_tests/src/test_mqtt_client.rs
+++ b/crates/tests/mqtt_tests/src/test_mqtt_client.rs
@@ -23,7 +23,7 @@ pub async fn messages_published_on(mqtt_port: u16, topic: &str) -> UnboundedRece
continue;
}
Err(err) => {
- let msg = format!("Error: {:?}", err).to_string();
+ let msg = format!("Error: {:?}", err);
let _ = sender.send(msg);
return recv;
}
@@ -180,7 +180,7 @@ impl TestCon {
}
}
Err(err) => {
- let msg = format!("Error: {:?}", err).to_string();
+ let msg = format!("Error: {:?}", err);
let _ = sender.send(msg).await;
break;
}