Added Default derive to allow for same functionality as base type (#179)

This commit is contained in:
Thomas Nicollet 2024-08-05 20:47:13 +02:00 committed by GitHub
parent 053d329e8b
commit 47f52327e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,7 +93,7 @@ impl ClientBuilder {
/// `ClientWithMiddleware` is a wrapper around [`reqwest::Client`] which runs middleware on every
/// request.
#[derive(Clone)]
#[derive(Clone, Default)]
pub struct ClientWithMiddleware {
inner: reqwest::Client,
middleware_stack: Box<[Arc<dyn Middleware>]>,