From bc00eaea8d6ad1b34b151494b845a48caed56b2e Mon Sep 17 00:00:00 2001 From: Alex Snaps Date: Thu, 2 May 2024 19:51:19 -0400 Subject: [PATCH] New clippy fix --- limitador-server/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/limitador-server/src/main.rs b/limitador-server/src/main.rs index 569d8202..3f4ad865 100644 --- a/limitador-server/src/main.rs +++ b/limitador-server/src/main.rs @@ -381,7 +381,7 @@ async fn main() -> Result<(), Box> { // check if the real path to the config file changed // (eg: k8s ConfigMap replacement) if canonical_limit_file != last_known_canonical_path { - last_known_canonical_path = canonical_limit_file.clone(); + last_known_canonical_path.clone_from(&canonical_limit_file); let limiter = limiter.clone(); handle.spawn(async move { match limiter.load_limits_from_file(&canonical_limit_file).await {