mirror of
https://github.com/tower-rs/tower.git
synced 2025-10-01 06:51:27 +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
|
||||
|
||||
- **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
|
||||
|
||||
|
@ -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()
|
||||
}
|
||||
|
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user