From 47549c549c0b80fa2554d89fe3f9e273b7fbddfb Mon Sep 17 00:00:00 2001 From: David Mulder Date: Thu, 16 May 2024 11:32:40 -0600 Subject: [PATCH] Fix clippy warning about inefficient use of clone() Signed-off-by: David Mulder --- src/common/src/idprovider/himmelblau.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/src/idprovider/himmelblau.rs b/src/common/src/idprovider/himmelblau.rs index faea2c4..2d0dffe 100644 --- a/src/common/src/idprovider/himmelblau.rs +++ b/src/common/src/idprovider/himmelblau.rs @@ -626,7 +626,7 @@ impl IdProvider for HimmelblauProvider { * provide this during a silent acquire */ if let Some(old_token) = old_token { - token.displayname = old_token.displayname.clone() + token.displayname.clone_from(&old_token.displayname) } Ok(token) }