Skip to content

Commit 810bd51

Browse files
committed
make clippy happy
1 parent 0208c02 commit 810bd51

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/message.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ impl Message {
649649
let (videochat_type, mut url) = Message::parse_webrtc_instance(instance);
650650

651651
// make sure, there is a scheme in the url
652-
if !url.contains(":") {
652+
if !url.contains(':') {
653653
url = format!("https://{}", url);
654654
}
655655

@@ -659,10 +659,10 @@ impl Message {
659659
} else {
660660
// if there nothing that would separate the room, add a slash as a separator;
661661
// this way, urls can be given as "https://meet.jit.si" as well as "https://meet.jit.si/"
662-
let maybe_slash = if url.ends_with("/")
663-
|| url.ends_with("?")
664-
|| url.ends_with("#")
665-
|| url.ends_with("=")
662+
let maybe_slash = if url.ends_with('/')
663+
|| url.ends_with('?')
664+
|| url.ends_with('#')
665+
|| url.ends_with('=')
666666
{
667667
""
668668
} else {

0 commit comments

Comments
 (0)