From a6eaae7aba38198ab71bbb2855b75d1c7baaa571 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Mon, 3 Jun 2024 14:06:28 +0200 Subject: [PATCH] chore(store): Fix clippy issues --- plugins/store/src/store.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/store/src/store.rs b/plugins/store/src/store.rs index 17ad48cf35..30247df812 100644 --- a/plugins/store/src/store.rs +++ b/plugins/store/src/store.rs @@ -81,7 +81,7 @@ impl StoreBuilder { /// # Ok(()) /// # } pub fn defaults(mut self, defaults: HashMap) -> Self { - self.cache = defaults.clone(); + self.cache.clone_from(&defaults); self.defaults = Some(defaults); self } @@ -279,7 +279,7 @@ impl Store { ); } } - self.cache = defaults.clone(); + self.cache.clone_from(defaults); } Ok(()) } else {