Enable unused_async clippy lint

This commit is contained in:
dasha_uwu
2026-01-10 09:08:48 +05:00
committed by Jason Volk
parent fd519ff7f1
commit d095a4fd3b
20 changed files with 60 additions and 64 deletions

View File

@@ -6,6 +6,7 @@ pub(super) const SIGNAL: &str = "SIGUSR2";
/// Possibly spawn the terminal console at startup if configured.
#[implement(super::Service)]
#[allow(clippy::unused_async)]
pub(super) async fn console_auto_start(&self) {
#[cfg(feature = "console")]
if self
@@ -16,12 +17,13 @@ pub(super) async fn console_auto_start(&self) {
{
// Allow more of the startup sequence to execute before spawning
tokio::task::yield_now().await;
self.console.start().await;
self.console.start();
}
}
/// Shutdown the console when the admin worker terminates.
#[implement(super::Service)]
#[allow(clippy::unused_async)]
pub(super) async fn console_auto_stop(&self) {
#[cfg(feature = "console")]
self.console.close().await;