applied basic cargo clippy suggestions

This commit is contained in:
2026-01-15 17:21:40 +08:00
parent a20b363d07
commit f9b220c558
5 changed files with 13 additions and 19 deletions

View File

@@ -91,15 +91,12 @@ fn setup_fdoll() -> Result<(), tauri::Error> {
}
fn register_app_events(event: tauri::RunEvent) {
match event {
tauri::RunEvent::ExitRequested { api, code, .. } => {
if code.is_none() {
api.prevent_exit();
} else {
println!("exit code: {:?}", code);
}
if let tauri::RunEvent::ExitRequested { api, code, .. } = event {
if code.is_none() {
api.prevent_exit();
} else {
println!("exit code: {:?}", code);
}
_ => {}
}
}