mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-16 05:36:50 +00:00
Derive or impl fmt::Debug on several structs.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
8bb0d02619
commit
442a5aafeb
3 files changed
+10
-2
No files matched your search
@@ -1,4 +1,4 @@
|
||||
use std::sync::Arc;
|
||||
use std::{fmt, sync::Arc};
|
||||
|
||||
use futures::{StreamExt, TryStreamExt};
|
||||
use tokio::sync::Mutex;
|
||||
@@ -177,6 +177,12 @@ pub(crate) fn services(&self) -> impl Iterator<Item = Arc<dyn Service>> + Send {
|
||||
.into_iter()
|
||||
}
|
||||
|
||||
impl fmt::Debug for Services {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.debug_struct("Services").finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[implement(Services)]
|
||||
pub async fn start(self: &Arc<Self>) -> Result<Arc<Self>> {
|
||||
debug_info!("Starting services...");
|
||||
|
||||
Reference in new issue
Block a user