Use regular non-exhaustive debug representation instead of custom one (#1380)

This commit is contained in:
Jonas Platte
2022-10-20 20:02:46 +02:00
committed by David Pedersen
parent 177c50ca7a
commit 9991b85f1f
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -35,9 +35,7 @@ impl<H, T, B> IntoService<H, T, B> {
impl<H, T, B> fmt::Debug for IntoService<H, T, B> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_tuple("IntoService")
.field(&format_args!("..."))
.finish()
f.debug_struct("IntoService").finish_non_exhaustive()
}
}
+1 -1
View File
@@ -24,7 +24,7 @@ macro_rules! opaque_future {
impl<$($param),*> std::fmt::Debug for $name<$($param),*> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_tuple(stringify!($name)).field(&format_args!("...")).finish()
f.debug_struct(stringify!($name)).finish_non_exhaustive()
}
}