mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +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> {
|
impl<H, T, S, B> fmt::Debug for IntoService<H, T, S, B> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
f.debug_tuple("IntoService")
|
f.debug_struct("IntoService").finish_non_exhaustive()
|
||||||
.field(&format_args!("..."))
|
|
||||||
.finish()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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> {
|
impl<H, T, S, B> fmt::Debug for IntoServiceStateInExtension<H, T, S, B> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
f.debug_tuple("IntoServiceStateInExtension")
|
f.debug_struct("IntoServiceStateInExtension")
|
||||||
.field(&format_args!("..."))
|
.finish_non_exhaustive()
|
||||||
.finish()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ macro_rules! opaque_future {
|
|||||||
|
|
||||||
impl<$($param),*> std::fmt::Debug for $name<$($param),*> {
|
impl<$($param),*> std::fmt::Debug for $name<$($param),*> {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
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