]> code.octet-stream.net Git - netwatcher/blobdiff - src/watch_linux.rs
Document things
[netwatcher] / src / watch_linux.rs
index 74c146558e19ca267bbb63feecf02a7f5dab165f..a987919360fc789c79a3478e19da048d9c47c963 100644 (file)
@@ -1,13 +1,13 @@
-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)
+}