mirror of
https://github.com/tauri-apps/tauri-plugin-store.git
synced 2026-01-31 00:35:18 +01:00
chore(store): Fix clippy issues
Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/9349804042 Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -279,7 +279,7 @@ impl<R: Runtime> Store<R> {
|
||||
);
|
||||
}
|
||||
}
|
||||
self.cache = defaults.clone();
|
||||
self.cache.clone_from(defaults);
|
||||
}
|
||||
Ok(())
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user