mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-07 15:17:43 +00:00
Apply clippy suggestion
This commit is contained in:
parent
d351b5031c
commit
a08b3338c3
1 changed files with 2 additions and 4 deletions
|
@ -20,12 +20,10 @@ 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 {
|
||||
} else if let Err(err) = tun2proxy::desktop_run_async(args, shutdown_token).await {
|
||||
log::error!("main loop error: {}", err);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
ctrlc2::set_async_handler(async move {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue