fix clippy: remove redundant api:_ wildcard in CloseRequested pattern
This commit is contained in:
parent
cf49e46a6d
commit
e20447dbc4
2 changed files with 2 additions and 2 deletions
|
|
@ -501,7 +501,7 @@ pub async fn new_window(
|
|||
let app_handle = app_handle.clone();
|
||||
let label_clone = label.clone();
|
||||
window.on_window_event(move |event| {
|
||||
if let tauri::WindowEvent::CloseRequested { api: _, .. } = event
|
||||
if let tauri::WindowEvent::CloseRequested { .. } = event
|
||||
&& let Some(win) = app_handle.get_webview_window(&label_clone)
|
||||
{
|
||||
save_window_state_internal(&win, &db);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue