Skip to content

Commit

Permalink
Apply clippy suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
blechschmidt committed Apr 3, 2024
1 parent 4af5207 commit 978762b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ async fn main() -> Result<(), BoxError> {
}
#[cfg(not(target_os = "linux"))]
log::error!("Your platform doesn't support unprivileged namespaces");
} else {
if let Err(err) = tun2proxy::desktop_run_async(args, shutdown_token).await {
log::error!("main loop error: {}", err);
}
} else if let Err(err) = tun2proxy::desktop_run_async(args, shutdown_token).await {
log::error!("main loop error: {}", err);
}
}
});
Expand Down

0 comments on commit 978762b

Please sign in to comment.