diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-02-04 12:07:01 +0100 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-02-23 09:10:57 +0100 |
commit | 507f80a4f7d555a7db0e2203eb93c06699642758 (patch) | |
tree | 02ae8a84bea776f0415d90839eb7b2bedef3b50f /crates/core | |
parent | d77d3c2daf3e1afc4f6a317e15b9faf3547f45dc (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.rs | 2 |
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(()) } |