Skip to content

Commit a6eaae7

Browse files
committed
chore(store): Fix clippy issues
1 parent c52978d commit a6eaae7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/store/src/store.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl<R: Runtime> StoreBuilder<R> {
8181
/// # Ok(())
8282
/// # }
8383
pub fn defaults(mut self, defaults: HashMap<String, JsonValue>) -> Self {
84-
self.cache = defaults.clone();
84+
self.cache.clone_from(&defaults);
8585
self.defaults = Some(defaults);
8686
self
8787
}
@@ -279,7 +279,7 @@ impl<R: Runtime> Store<R> {
279279
);
280280
}
281281
}
282-
self.cache = defaults.clone();
282+
self.cache.clone_from(defaults);
283283
}
284284
Ok(())
285285
} else {

0 commit comments

Comments
 (0)