cargo format

This commit is contained in:
Jett Chen 2023-12-14 10:41:53 +08:00
parent 65efa0a2e1
commit af09c610b2
14 changed files with 154 additions and 81 deletions

View file

@ -34,7 +34,7 @@ impl TunInterface {
Ok(result) => return result,
Err(_would_block) => {
tracing::debug!("WouldBlock");
continue
continue;
}
}
}

View file

@ -35,7 +35,7 @@ impl TunInterface {
#[throws]
#[instrument]
pub fn new_with_options(options: TunOptions) -> TunInterface {
let ti = if options.tun_retrieve{
let ti = if options.tun_retrieve {
TunInterface::retrieve().ok_or(Error::new(
std::io::ErrorKind::NotFound,
"No tun interface found",