From 230b2a229f7ed2391b2848f6c5fad4c1b5ec2eb6 Mon Sep 17 00:00:00 2001 From: Devin Ragotzy Date: Thu, 30 Jul 2020 20:05:49 -0400 Subject: [PATCH] matrix_sdk: Remove clippy allows --- matrix_sdk/src/client.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/matrix_sdk/src/client.rs b/matrix_sdk/src/client.rs index 87303b3f..40ccf616 100644 --- a/matrix_sdk/src/client.rs +++ b/matrix_sdk/src/client.rs @@ -316,10 +316,10 @@ impl Client { homeserver_url: U, config: ClientConfig, ) -> Result { - #[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();