]> code.octet-stream.net Git - netwatcher/blobdiff - examples/watch.rs
Update licence in Cargo.toml
[netwatcher] / examples / watch.rs
index 2f9539cfbb0b8dfdd075e1ebf4c1941f19558712..767fd19ee72d7fe1fa2e848f722c1579ca8b0112 100644 (file)
@@ -5,8 +5,8 @@ fn main() {
 
     let handle = netwatcher::watch_interfaces(|update| {
         println!("Interface update!");
 
     let handle = netwatcher::watch_interfaces(|update| {
         println!("Interface update!");
-        println!("State: {:?}", update.interfaces);
-        println!("Diff: {:?}", update.diff);
+        println!("State: {:#?}", update.interfaces);
+        println!("Diff: {:#?}", update.diff);
     });
 
     std::thread::sleep(Duration::from_secs(30));
     });
 
     std::thread::sleep(Duration::from_secs(30));