async_client: Propagate an error properly.

master
Damir Jelić 2020-02-21 12:13:38 +01:00
parent fbd65fde26
commit 0a74c943ba
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ impl AsyncClient {
headers.insert(reqwest::header::USER_AGENT, user_agent); headers.insert(reqwest::header::USER_AGENT, user_agent);
let http_client = http_client.default_headers(headers).build().unwrap(); let http_client = http_client.default_headers(headers).build()?;
Ok(Self { Ok(Self {
homeserver, homeserver,