-use crate::Update;\r
-use crate::Error;\r
-\r
-pub(crate) struct WatchHandle;\r
-\r
-pub(crate) fn watch_interfaces<F: FnMut(Update) + 'static>(\r
- callback: F,\r
-) -> Result<WatchHandle, Error> {\r
- // stop current worker thread\r
- // post this into a thread that will use it\r
- drop(callback);\r
- Ok(WatchHandle)\r
-}\r
+use crate::Error;
+use crate::Update;
+
+pub(crate) struct WatchHandle;
+
+pub(crate) fn watch_interfaces<F: FnMut(Update) + 'static>(
+ callback: F,
+) -> Result<WatchHandle, Error> {
+ // stop current worker thread
+ // post this into a thread that will use it
+ drop(callback);
+ Ok(WatchHandle)
+}