From 507f80a4f7d555a7db0e2203eb93c06699642758 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 4 Feb 2022 12:07:01 +0100 Subject: Remove unnecessary .clone() call This fixes clippy lint `clippy::redundant_clone`. Signed-off-by: Matthias Beyer --- crates/core/tedge/src/cli/connect/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/core') 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(()) } -- cgit v1.2.3