diff --git a/src/blocking/client.rs b/src/blocking/client.rs index b311209..a3f7ce3 100644 --- a/src/blocking/client.rs +++ b/src/blocking/client.rs @@ -63,6 +63,12 @@ pub struct ClientBuilder { timeout: Timeout, } +impl Default for ClientBuilder { + fn default() -> Self { + Self::new() + } +} + impl ClientBuilder { /// Constructs a new `ClientBuilder`. /// @@ -455,6 +461,12 @@ impl ClientBuilder { } } +impl Default for Client { + fn default() -> Self { + Self::new() + } +} + impl Client { /// Constructs a new `Client`. /// diff --git a/src/blocking/multipart.rs b/src/blocking/multipart.rs index c0f65a9..5795741 100644 --- a/src/blocking/multipart.rs +++ b/src/blocking/multipart.rs @@ -58,6 +58,12 @@ pub struct Part { value: Body, } +impl Default for Form { + fn default() -> Self { + Self::new() + } +} + impl Form { /// Creates a new Form without any content. pub fn new() -> Form {