Skip to content

Commit

Permalink
Use regular non-exhaustive debug representation instead of custom one (
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte authored and davidpdrsn committed Oct 20, 2022
1 parent 177c50c commit 9991b85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions axum/src/handler/into_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down
2 changes: 1 addition & 1 deletion axum/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit 9991b85

Please sign in to comment.