From 810bd514d7b724b306d6955e7d3581bc52b30d2e Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Fri, 14 Aug 2020 13:35:02 +0200 Subject: [PATCH] make clippy happy --- src/message.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/message.rs b/src/message.rs index d31361dde..78ec8af13 100644 --- a/src/message.rs +++ b/src/message.rs @@ -649,7 +649,7 @@ impl Message { let (videochat_type, mut url) = Message::parse_webrtc_instance(instance); // make sure, there is a scheme in the url - if !url.contains(":") { + if !url.contains(':') { url = format!("https://{}", url); } @@ -659,10 +659,10 @@ impl Message { } else { // if there nothing that would separate the room, add a slash as a separator; // this way, urls can be given as "https://meet.jit.si" as well as "https://meet.jit.si/" - let maybe_slash = if url.ends_with("/") - || url.ends_with("?") - || url.ends_with("#") - || url.ends_with("=") + let maybe_slash = if url.ends_with('/') + || url.ends_with('?') + || url.ends_with('#') + || url.ends_with('=') { "" } else {