X-Git-Url: https://code.octet-stream.net/netwatcher/blobdiff_plain/4abfa61b20e567fdd69ac3ca47a9c218971a30ff..f9df7170ac929ccc915642c2e6415e768973bb54:/src/watch_win.rs?ds=sidebyside 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();