X-Git-Url: https://code.octet-stream.net/netwatcher/blobdiff_plain/5dd5aea6e6c70688ad4288df1eaafd97ac05720a..244781f32194c2498ef0e3b8225a9ff9791624af:/src/watch_linux.rs?ds=inline diff --git a/src/watch_linux.rs b/src/watch_linux.rs index 74c1465..a987919 100644 --- a/src/watch_linux.rs +++ b/src/watch_linux.rs @@ -1,13 +1,13 @@ -use crate::Update; -use crate::Error; - -pub(crate) struct WatchHandle; - -pub(crate) fn watch_interfaces( - callback: F, -) -> Result { - // stop current worker thread - // post this into a thread that will use it - drop(callback); - Ok(WatchHandle) -} +use crate::Error; +use crate::Update; + +pub(crate) struct WatchHandle; + +pub(crate) fn watch_interfaces( + callback: F, +) -> Result { + // stop current worker thread + // post this into a thread that will use it + drop(callback); + Ok(WatchHandle) +}