Use from_secs build function.
@@ -45,8 +45,8 @@ impl Default for ClientOptions {
no_proxy: None,
verbose: false,
insecure: false,
- timeout: Duration::new(300, 0),
- connect_timeout: Duration::new(300, 0),
+ timeout: Duration::from_secs(300),
+ connect_timeout: Duration::from_secs(300),
user: None,
compressed: false,
context_dir: ".".to_string(),
