Remove as_str() call from event.menu_item_id() (#2430)

There isn't a method `as_str()` associated to the `MenuIdRef` returned by `menu_item_id()`
This commit is contained in:
Riccardo Padovani
2021-08-15 02:15:48 +02:00
committed by GitHub
parent 2088cd0f24
commit 102895fa0c

View File

@@ -80,7 +80,7 @@ fn main() {
tauri::Builder::default()
.menu(menu)
.on_menu_event(|event| {
match event.menu_item_id().as_str() {
match event.menu_item_id() {
"quit" => {
std::process::exit(0);
}