mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 05:16:28 +03:00
make clippy happy
This commit is contained in:
@@ -649,7 +649,7 @@ impl Message {
|
|||||||
let (videochat_type, mut url) = Message::parse_webrtc_instance(instance);
|
let (videochat_type, mut url) = Message::parse_webrtc_instance(instance);
|
||||||
|
|
||||||
// make sure, there is a scheme in the url
|
// make sure, there is a scheme in the url
|
||||||
if !url.contains(":") {
|
if !url.contains(':') {
|
||||||
url = format!("https://{}", url);
|
url = format!("https://{}", url);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -659,10 +659,10 @@ impl Message {
|
|||||||
} else {
|
} else {
|
||||||
// if there nothing that would separate the room, add a slash as a separator;
|
// 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/"
|
// 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("/")
|
let maybe_slash = if url.ends_with('/')
|
||||||
|| url.ends_with("?")
|
|| url.ends_with('?')
|
||||||
|| url.ends_with("#")
|
|| url.ends_with('#')
|
||||||
|| url.ends_with("=")
|
|| url.ends_with('=')
|
||||||
{
|
{
|
||||||
""
|
""
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user