mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 21:26:50 +00:00
Enable unused_async clippy lint
This commit is contained in:
1 parent
fd519ff7f1
commit
d095a4fd3b
20 files changed
+60
-64
No files matched your search
@@ -38,16 +38,16 @@ impl Console {
|
||||
})
|
||||
}
|
||||
|
||||
pub(super) async fn handle_signal(self: &Arc<Self>, sig: &'static str) {
|
||||
pub(super) fn handle_signal(self: &Arc<Self>, sig: &'static str) {
|
||||
if !self.server.running() {
|
||||
self.interrupt();
|
||||
} else if sig == "SIGINT" {
|
||||
self.interrupt_command();
|
||||
self.start().await;
|
||||
self.start();
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn start(self: &Arc<Self>) {
|
||||
pub fn start(self: &Arc<Self>) {
|
||||
let mut worker_join = self.worker_join.lock().expect("locked");
|
||||
if worker_join.is_none() {
|
||||
let self_ = Arc::clone(self);
|
||||
|
||||
Reference in new issue
Block a user