summaryrefslogtreecommitdiffstats
path: root/crates/core
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-02-04 12:07:01 +0100
committerMatthias Beyer <matthias.beyer@ifm.com>2022-02-23 09:10:57 +0100
commit507f80a4f7d555a7db0e2203eb93c06699642758 (patch)
tree02ae8a84bea776f0415d90839eb7b2bedef3b50f /crates/core
parentd77d3c2daf3e1afc4f6a317e15b9faf3547f45dc (diff)
Remove unnecessary .clone() call
This fixes clippy lint `clippy::redundant_clone`. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
Diffstat (limited to 'crates/core')
-rw-r--r--crates/core/tedge/src/cli/connect/command.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/core/tedge/src/cli/connect/command.rs b/crates/core/tedge/src/cli/connect/command.rs
index 6363efbf..2048d398 100644
--- a/crates/core/tedge/src/cli/connect/command.rs
+++ b/crates/core/tedge/src/cli/connect/command.rs
@@ -75,7 +75,7 @@ impl Command for ConnectCommand {
if self.check_if_bridge_exists(&br_config) {
return match self.check_connection(&config) {
Ok(DeviceStatus::AlreadyExists) => {
- let cloud = br_config.cloud_name.clone();
+ let cloud = br_config.cloud_name;
println!("Connection check to {} cloud is successful.\n", cloud);
Ok(())
}