Skip to content

Commit 4d87e06

Browse files
committed
🐛 Compatible syntax
1 parent 28c9d90 commit 4d87e06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src-tauri/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ pub fn run_app() {
101101

102102
Ok(())
103103
})
104-
.on_window_event(|window, event| {
104+
.on_window_event(|_window, _event| {
105105
#[cfg(target_os = "macos")]
106-
if let tauri::WindowEvent::CloseRequested { api, .. } = event {
107-
let window = window.clone();
106+
if let tauri::WindowEvent::CloseRequested { api, .. } = _event {
107+
let window = _window.clone();
108108
{
109109
tauri::async_runtime::spawn(async move {
110110
if window.is_fullscreen().unwrap_or(false) {

0 commit comments

Comments
 (0)