remove unnecessary braces

This commit is contained in:
2024-05-26 22:55:54 +02:00
parent b82cb604e4
commit b69cfc6808
+3 -3
View File
@@ -58,7 +58,7 @@ async fn main() -> anyhow::Result<()> {
},
_ = tokio::time::sleep(
Duration::from_secs(sleep_secs.try_into().expect("sleep_secs is negative"))
) => {false},
) => false,
};
if shutdown {
break Ok(());
@@ -85,8 +85,8 @@ async fn wait_for_shutdown_signal() -> io::Result<()> {
};
tokio::select! {
result = ctrl_c => { result }
result = sigterm => { result }
result = ctrl_c => result,
result = sigterm => result,
}
}