diff --git a/tower/CHANGELOG.md b/tower/CHANGELOG.md index 840c1f89f..1b655569b 100644 --- a/tower/CHANGELOG.md +++ b/tower/CHANGELOG.md @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 # Unreleased - **util**: Add `CloneBoxService` which is a `Clone + Send` boxed `Service`. +- **util**: Remove unnecessary `Debug` bounds from `impl Debug for BoxService`. +- **util**: Remove unnecessary `Debug` bounds from `impl Debug for UnsyncBoxService`. ### Fixed diff --git a/tower/src/util/boxed/sync.rs b/tower/src/util/boxed/sync.rs index 4dbb06cf4..ef092405c 100644 --- a/tower/src/util/boxed/sync.rs +++ b/tower/src/util/boxed/sync.rs @@ -67,12 +67,7 @@ impl Service for BoxService { } } -impl fmt::Debug for BoxService -where - T: fmt::Debug, - U: fmt::Debug, - E: fmt::Debug, -{ +impl fmt::Debug for BoxService { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { fmt.debug_struct("BoxService").finish() } diff --git a/tower/src/util/boxed/unsync.rs b/tower/src/util/boxed/unsync.rs index b5a792d38..f645f1699 100644 --- a/tower/src/util/boxed/unsync.rs +++ b/tower/src/util/boxed/unsync.rs @@ -61,12 +61,7 @@ impl Service for UnsyncBoxService { } } -impl fmt::Debug for UnsyncBoxService -where - T: fmt::Debug, - U: fmt::Debug, - E: fmt::Debug, -{ +impl fmt::Debug for UnsyncBoxService { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { fmt.debug_struct("UnsyncBoxService").finish() }