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:
FabianLars
2024-06-03 12:07:13 +00:00
committed by tauri-bot
parent b1ce9b3866
commit eb0d047ce8

View File

@@ -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 {