X-Git-Url: https://code.octet-stream.net/netwatcher/blobdiff_plain/addb589bf51bdc5b5e253c0b5cbd47394e293ba7..473c9605820f4531f9d40823338fa4bf8718dd6f:/src/watch_mac.rs?ds=inline diff --git a/src/watch_mac.rs b/src/watch_mac.rs index de0e650..42e7217 100644 --- a/src/watch_mac.rs +++ b/src/watch_mac.rs @@ -42,7 +42,9 @@ pub(crate) struct WatchHandle { impl Drop for WatchHandle { fn drop(&mut self) { - unsafe { nw_path_monitor_cancel(self.path_monitor); } + unsafe { + nw_path_monitor_cancel(self.path_monitor); + } } } @@ -83,7 +85,5 @@ pub(crate) fn watch_interfaces( nw_path_monitor_set_queue(path_monitor, queue); nw_path_monitor_start(path_monitor); } - Ok(WatchHandle { - path_monitor, - }) + Ok(WatchHandle { path_monitor }) }