chore(store): Fix clippy issues

pull/1415/head
FabianLars 1 year ago
parent c52978d7ca
commit a6eaae7aba
No known key found for this signature in database

@ -81,7 +81,7 @@ impl<R: Runtime> StoreBuilder<R> {
/// # Ok(()) /// # Ok(())
/// # } /// # }
pub fn defaults(mut self, defaults: HashMap<String, JsonValue>) -> Self { pub fn defaults(mut self, defaults: HashMap<String, JsonValue>) -> Self {
self.cache = defaults.clone(); self.cache.clone_from(&defaults);
self.defaults = Some(defaults); self.defaults = Some(defaults);
self self
} }
@ -279,7 +279,7 @@ impl<R: Runtime> Store<R> {
); );
} }
} }
self.cache = defaults.clone(); self.cache.clone_from(defaults);
} }
Ok(()) Ok(())
} else { } else {

Loading…
Cancel
Save