]> code.octet-stream.net Git - netwatcher/blobdiff - src/watch_win.rs
Support for cancelling linux watch
[netwatcher] / src / watch_win.rs
index edd2fe38d2f96587ed46cddb7b5fe714826317b0..23b274ea0d35ef3a992fc574ebdf44085423a445 100644 (file)
@@ -81,7 +81,8 @@ unsafe extern "system" fn notif(
 ) {
     let state_ptr = ctx as *const Mutex<WatchState>;
     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();