Skip to content

Commit

Permalink
✨ Added Default derive to allow for same functionality as base type (
Browse files Browse the repository at this point in the history
  • Loading branch information
nwmqpa authored Aug 5, 2024
1 parent 053d329 commit 47f5232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reqwest-middleware/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>]>,
Expand Down

0 comments on commit 47f5232

Please sign in to comment.