util: remove unnecessary Debug bounds from boxed services (#617)

This commit is contained in:
David Pedersen 2021-11-11 21:59:29 +01:00 committed by GitHub
parent 973bf71583
commit 48f8ae90a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 12 deletions

View File

@ -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

View File

@ -67,12 +67,7 @@ impl<T, U, E> Service<T> for BoxService<T, U, E> {
}
}
impl<T, U, E> fmt::Debug for BoxService<T, U, E>
where
T: fmt::Debug,
U: fmt::Debug,
E: fmt::Debug,
{
impl<T, U, E> fmt::Debug for BoxService<T, U, E> {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
fmt.debug_struct("BoxService").finish()
}

View File

@ -61,12 +61,7 @@ impl<T, U, E> Service<T> for UnsyncBoxService<T, U, E> {
}
}
impl<T, U, E> fmt::Debug for UnsyncBoxService<T, U, E>
where
T: fmt::Debug,
U: fmt::Debug,
E: fmt::Debug,
{
impl<T, U, E> fmt::Debug for UnsyncBoxService<T, U, E> {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
fmt.debug_struct("UnsyncBoxService").finish()
}