X-Git-Url: https://code.octet-stream.net/netwatcher/blobdiff_plain/4abfa61b20e567fdd69ac3ca47a9c218971a30ff..d2c9a9f306a336aa9dd8ddfb6579746e4f10b7a4:/src/watch_win.rs diff --git a/src/watch_win.rs b/src/watch_win.rs index edd2fe3..23b274e 100644 --- a/src/watch_win.rs +++ b/src/watch_win.rs @@ -81,7 +81,8 @@ unsafe extern "system" fn notif( ) { let state_ptr = ctx as *const Mutex; unsafe { - let state_guard = &mut *state_ptr.as_ref() + let state_guard = &mut *state_ptr + .as_ref() .expect("callback ctx should never be null") .lock() .unwrap();