chore: edition 2024

This commit is contained in:
Lucas Nogueira
2026-09-26 15:36:22 -03:00
parent b517cc7e85
commit 3d8a3c877b
100 changed files with 276 additions and 253 deletions
+4 -5
View File
@@ -18,10 +18,10 @@ use std::{
sync::{Arc, RwLock},
time::Duration,
};
pub use store::{resolve_store_path, DeserializeFn, SerializeFn, Store, StoreBuilder};
pub use store::{DeserializeFn, SerializeFn, Store, StoreBuilder, resolve_store_path};
use tauri::{
plugin::{self, TauriPlugin},
AppHandle, Manager, ResourceId, RunEvent, Runtime, State,
plugin::{self, TauriPlugin},
};
mod error;
@@ -470,11 +470,10 @@ impl Builder {
let collection = app_handle.state::<StoreState>();
let stores = collection.stores.read().unwrap();
for (path, rid) in stores.iter() {
if let Ok(store) = app_handle.resources_table().get::<Store<R>>(*rid) {
if let Err(err) = store.save() {
if let Ok(store) = app_handle.resources_table().get::<Store<R>>(*rid)
&& let Err(err) = store.save() {
tracing::error!("failed to save store {path:?} with error {err:?}");
}
}
}
}
})