diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-10-27 18:50:09 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-10-27 18:50:09 +0200 |
commit | 7de152bcc611fff31a6265a931b123f62ff76890 (patch) | |
tree | a724bd5e46216c4b4656e06c7bcb2df2f981cce0 /src | |
parent | 94dcbd94062074b864f7b38d8cf4dfbd0b8eea84 (diff) |
cargo fmt
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 06fecfc..63f3ba4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ use std::fmt; use std::net::{Ipv4Addr, Ipv6Addr}; use std::str::FromStr; -use std::sync::{Arc, mpsc}; +use std::sync::{mpsc, Arc}; use std::thread; use std::time::Duration; @@ -168,7 +168,7 @@ fn check_for_addrs6(config: Arc<Config>, tx: mpsc::Sender<Ipv6Addr>) -> Result<I fn monitor4(config: Arc<Config>, tx: mpsc::Sender<Ipv4Addr>) -> Result<()> { loop { match check_for_addrs4(config.clone(), tx.clone()) { - Ok(_) => { /* unreachable */ }, + Ok(_) => { /* unreachable */ } Err(e) => println!("{}", e), } @@ -179,7 +179,7 @@ fn monitor4(config: Arc<Config>, tx: mpsc::Sender<Ipv4Addr>) -> Result<()> { fn monitor6(config: Arc<Config>, tx: mpsc::Sender<Ipv6Addr>) -> Result<()> { loop { match check_for_addrs6(config.clone(), tx.clone()) { - Ok(_) => { /* unreachable */ }, + Ok(_) => { /* unreachable */ } Err(e) => println!("{}", e), } |