Add default implementation to HttpConfig.
@@ -377,7 +377,6 @@ pub struct HttpConfig {
read_buf_size: Option<usize>,
}
-#[allow(clippy::new_without_default)]
impl HttpConfig {
/// Create a new HttpConfig
pub fn new() -> HttpConfig {
@@ -393,6 +392,13 @@ impl HttpConfig {
}
}
+impl Default for HttpConfig {
+ /// Create a new HttpConfig. Same as HttpConfig::new().
+ fn default() -> HttpConfig {
+ HttpConfig::new()
+ }
+}
+
impl<C> DispatchSignedRequest for HttpClient<C>
where
C: Connect + 'static,
