fix(store): `with_store` and `StoreCollection` become private in #1011 (#1040)

* Fix with_store become private in #1011

* Add change file
pull/1043/head
Tony 1 year ago committed by GitHub
parent 5006717a7f
commit 79691e93e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'store': patch
---
Fix `with_store` and `StoreCollection` changed to private in #1011

@ -48,7 +48,7 @@ struct ChangePayload<'a> {
value: &'a JsonValue,
}
struct StoreCollection<R: Runtime> {
pub struct StoreCollection<R: Runtime> {
stores: Mutex<HashMap<PathBuf, Store<R>>>,
frozen: bool,
@ -56,7 +56,7 @@ struct StoreCollection<R: Runtime> {
mobile_plugin_handle: PluginHandle<R>,
}
fn with_store<R: Runtime, T, F: FnOnce(&mut Store<R>) -> Result<T>>(
pub fn with_store<R: Runtime, T, F: FnOnce(&mut Store<R>) -> Result<T>>(
app: AppHandle<R>,
collection: State<'_, StoreCollection<R>>,
path: impl AsRef<Path>,

Loading…
Cancel
Save