derive/impl and use Default for some structs
and revamp HttpClientOptions with two constructors for the common use cases Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
f4e52bb27d
commit
93e3581ce7
@ -28,7 +28,7 @@ async fn run() -> Result<(), Error> {
|
||||
|
||||
let auth_id = Authid::root_auth_id();
|
||||
|
||||
let options = HttpClientOptions::new()
|
||||
let options = HttpClientOptions::default()
|
||||
.interactive(true)
|
||||
.ticket_cache(true);
|
||||
|
||||
|
@ -10,7 +10,7 @@ async fn upload_speed() -> Result<f64, Error> {
|
||||
|
||||
let auth_id = Authid::root_auth_id();
|
||||
|
||||
let options = HttpClientOptions::new()
|
||||
let options = HttpClientOptions::default()
|
||||
.interactive(true)
|
||||
.ticket_cache(true);
|
||||
|
||||
|
Reference in New Issue
Block a user