forked from mirror/reqwest-middleware
Add implementation of `Debug` trait for `RequestBuilder`. (#50)
parent
b3f7ce40d3
commit
360f23c952
|
@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Implementation of `Debug` trait for `RequestBuilder`.
|
||||||
|
|
||||||
## [0.1.5] - 2022-02-21
|
## [0.1.5] - 2022-02-21
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -260,3 +260,12 @@ impl RequestBuilder {
|
||||||
.map(|inner| RequestBuilder { inner, client })
|
.map(|inner| RequestBuilder { inner, client })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl fmt::Debug for RequestBuilder {
|
||||||
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
|
// skipping middleware_stack field for now
|
||||||
|
f.debug_struct("RequestBuilder")
|
||||||
|
.field("inner", &self.inner)
|
||||||
|
.finish_non_exhaustive()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue