Use from_secs build function.

This commit is contained in:
jcamiel 2022-01-15 18:35:15 +01:00 committed by Fabrice Reix
parent e129d8fbc1
commit 171bc5b9aa

View File

@ -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(),