mirror of
https://github.com/tower-rs/tower.git
synced 2025-10-02 15:25:11 +00:00
util: remove unnecessary Debug
bounds from boxed services (#617)
This commit is contained in:
parent
973bf71583
commit
48f8ae90a4
@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
- **util**: Add `CloneBoxService` which is a `Clone + Send` boxed `Service`.
|
- **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
|
### Fixed
|
||||||
|
|
||||||
|
@ -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>
|
impl<T, U, E> fmt::Debug for BoxService<T, U, E> {
|
||||||
where
|
|
||||||
T: fmt::Debug,
|
|
||||||
U: fmt::Debug,
|
|
||||||
E: fmt::Debug,
|
|
||||||
{
|
|
||||||
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
||||||
fmt.debug_struct("BoxService").finish()
|
fmt.debug_struct("BoxService").finish()
|
||||||
}
|
}
|
||||||
|
@ -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>
|
impl<T, U, E> fmt::Debug for UnsyncBoxService<T, U, E> {
|
||||||
where
|
|
||||||
T: fmt::Debug,
|
|
||||||
U: fmt::Debug,
|
|
||||||
E: fmt::Debug,
|
|
||||||
{
|
|
||||||
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
||||||
fmt.debug_struct("UnsyncBoxService").finish()
|
fmt.debug_struct("UnsyncBoxService").finish()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user