Derive or impl fmt::Debug on several structs.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -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