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

pull/180/head
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
1 changed files with 1 additions and 1 deletions

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>]>,