Skip to content

Commit

Permalink
chore(store): Fix clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed Jun 3, 2024
1 parent c52978d commit a6eaae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/store/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl<R: Runtime> StoreBuilder<R> {
/// # Ok(())
/// # }
pub fn defaults(mut self, defaults: HashMap<String, JsonValue>) -> Self {
self.cache = defaults.clone();
self.cache.clone_from(&defaults);
self.defaults = Some(defaults);
self
}
Expand Down Expand Up @@ -279,7 +279,7 @@ impl<R: Runtime> Store<R> {
);
}
}
self.cache = defaults.clone();
self.cache.clone_from(defaults);
}
Ok(())
} else {
Expand Down

0 comments on commit a6eaae7

Please sign in to comment.