matrix_sdk: Remove clippy allows

master
Devin Ragotzy 2020-07-30 20:05:49 -04:00
parent ed1f12ce37
commit 230b2a229f
1 changed files with 4 additions and 4 deletions

View File

@ -316,10 +316,10 @@ impl Client {
homeserver_url: U,
config: ClientConfig,
) -> Result<Self> {
#[allow(clippy::match_wild_err_arm)]
let homeserver: Url = match homeserver_url.try_into() {
Ok(u) => u,
Err(_e) => panic!("Error parsing homeserver url"),
let homeserver = if let Ok(u) = homeserver_url.try_into() {
u
} else {
panic!("Error parsing homeserver url")
};
let http_client = reqwest::Client::builder();