X-Git-Url: https://code.octet-stream.net/netwatcher/blobdiff_plain/7cbddf0b21f7cf98b46c66a430eb8221f3622d55..4abfa61b20e567fdd69ac3ca47a9c218971a30ff:/src/lib.rs?ds=inline diff --git a/src/lib.rs b/src/lib.rs index 7a8298e..69de586 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -145,6 +145,6 @@ pub fn list_interfaces() -> Result, Error> { /// /// The callback will fire once immediately with an initial interface list, and a diff as if /// there were originally no interfaces present. -pub fn watch_interfaces(callback: F) -> Result { +pub fn watch_interfaces(callback: F) -> Result { watch::watch_interfaces(callback).map(|handle| WatchHandle { _inner: handle }) }