mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-14 00:00:15 +02:00
Use regular non-exhaustive debug representation instead of custom one (#1380)
This commit is contained in:
@@ -47,9 +47,7 @@ impl<H, T, S, B> IntoService<H, T, S, B> {
|
||||
|
||||
impl<H, T, S, B> fmt::Debug for IntoService<H, T, S, 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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -33,9 +33,8 @@ impl<H, T, S, B> IntoServiceStateInExtension<H, T, S, B> {
|
||||
|
||||
impl<H, T, S, B> fmt::Debug for IntoServiceStateInExtension<H, T, S, B> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.debug_tuple("IntoServiceStateInExtension")
|
||||
.field(&format_args!("..."))
|
||||
.finish()
|
||||
f.debug_struct("IntoServiceStateInExtension")
|
||||
.finish_non_exhaustive()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user