chore: fix clippy (#3488)

This commit is contained in:
Tony
2026-07-15 16:01:07 +08:00
committed by GitHub
parent cad301fcc1
commit 13c63af965
3 changed files with 39 additions and 42 deletions
+1 -2
View File
@@ -232,10 +232,9 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
let app_dir_ = app_dir.clone();
if let Some(fs_scope) = &fs_scope {
let app_ = app.clone();
fs_scope.listen(move |event| {
if let tauri::fs::Event::PathAllowed(_) = event {
save_scopes(&app_.fs_scope(), &app_dir, &fs_scope_state_path);
save_scopes(&app.fs_scope(), &app_dir, &fs_scope_state_path);
}
});
}