Don't require S: Debug for impl Debug for Router<S> (#1836)

This commit is contained in:
David Pedersen
2023-03-10 11:14:40 +00:00
committed by GitHub
parent dc480f7b0e
commit e56e1b3e69
2 changed files with 5 additions and 9 deletions
+3 -1
View File
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
# Unreleased
- None.
- **fixed:** Don't require `S: Debug` for `impl Debug for Router<S>` ([#1836])
[#1836]: https://github.com/tokio-rs/axum/pull/1836
# 0.6.10 (03. March, 2023)
+2 -8
View File
@@ -77,10 +77,7 @@ where
}
}
impl<S, B> fmt::Debug for Router<S, B>
where
S: fmt::Debug,
{
impl<S, B> fmt::Debug for Router<S, B> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Router")
.field("routes", &self.routes)
@@ -721,10 +718,7 @@ impl<S, B> Clone for Endpoint<S, B> {
}
}
impl<S, B> fmt::Debug for Endpoint<S, B>
where
S: fmt::Debug,
{
impl<S, B> fmt::Debug for Endpoint<S, B> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Self::MethodRouter(method_router) => {