mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-25 09:57:34 +00:00
chore: Clippy fixes
This commit is contained in:
1 parent
18b0a87b2d
commit
eadcea8034
14 files changed
+66
-52
No files matched your search
@@ -49,12 +49,14 @@ impl Console {
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn start(self: &Arc<Self>) {
|
||||
pub fn start(self: &Arc<Self>) -> impl Future<Output = ()> {
|
||||
let mut worker_join = self.worker_join.lock();
|
||||
if worker_join.is_none() {
|
||||
let self_ = Arc::clone(self);
|
||||
_ = worker_join.insert(self.server.runtime().spawn(self_.worker()));
|
||||
}
|
||||
|
||||
std::future::ready(())
|
||||
}
|
||||
|
||||
pub async fn close(self: &Arc<Self>) {
|
||||
|
||||
Reference in new issue
Block a user