mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
fix clippy::ref_option
fix needless borrow fix clippy::nonminimal_bool
This commit is contained in:
1 parent
5e6dbaa27f
commit
9787dfe77c
11 files changed
+24
-30
No files matched your search
@@ -113,7 +113,7 @@ impl Services {
|
||||
pub async fn start(self: &Arc<Self>) -> Result<Arc<Self>> {
|
||||
debug_info!("Starting services...");
|
||||
|
||||
self.admin.set_services(&Some(Arc::clone(self)));
|
||||
self.admin.set_services(Some(Arc::clone(self)).as_ref());
|
||||
globals::migrations::migrations(self).await?;
|
||||
self.manager
|
||||
.lock()
|
||||
@@ -151,7 +151,7 @@ impl Services {
|
||||
manager.stop().await;
|
||||
}
|
||||
|
||||
self.admin.set_services(&None);
|
||||
self.admin.set_services(None);
|
||||
|
||||
debug_info!("Services shutdown complete.");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user