mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-24 00:00:16 +02:00
Don't require S: Debug for impl Debug for Router<S> (#1836)
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user