Skip to content

Commit 19d513a

Browse files
committed
clippy fix
1 parent e12b52d commit 19d513a

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎src-tauri/src/main.rs‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,8 @@ fn main() {
223223
#[cfg(target_os = "macos")]
224224
let app_builder = app_builder
225225
.menu(macos::make_menu)
226-
.on_menu_event(|app, event| match event.id().as_ref() {
227-
"appquit" => {
228-
tray::exit(app.clone());
229-
}
230-
_ => {}
226+
.on_menu_event(|app, event| if event.id().as_ref() == "appquit" {
227+
tray::exit(app.clone());
231228
});
232229

233230
let app = app_builder

0 commit comments

Comments
 (0)