File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ fn main() {
123
123
. plugin (tauri_plugin_store :: Builder :: default (). build ())
124
124
. setup (| app | {
125
125
// This loads the store from disk
126
- let store = app . store (" app_data.json" );
126
+ let store = app . store (" app_data.json" )? ;
127
127
128
128
// Note that values must be serde_json::Value instances,
129
129
// otherwise, they will not be compatible with the JavaScript bindings.
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ struct ChangePayload<'a> {
41
41
}
42
42
43
43
#[ derive( Debug ) ]
44
- pub struct StoreState {
44
+ struct StoreState {
45
45
stores : Arc < Mutex < HashMap < PathBuf , ResourceId > > > ,
46
46
serialize_fns : HashMap < String , SerializeFn > ,
47
47
deserialize_fns : HashMap < String , DeserializeFn > ,
@@ -327,7 +327,6 @@ pub trait StoreExt<R: Runtime> {
327
327
328
328
impl < R : Runtime , T : Manager < R > > StoreExt < R > for T {
329
329
fn store ( & self , path : impl AsRef < Path > ) -> Result < Arc < Store < R > > > {
330
- let path = path. as_ref ( ) ;
331
330
StoreBuilder :: new ( self . app_handle ( ) , path) . new_or_existing ( )
332
331
}
333
332
You can’t perform that action at this time.
0 commit comments