Remove unnecessary wraps

This commit is contained in:
Kitaiti Makoto
2021-01-16 01:05:42 +09:00
parent be939cf169
commit 3fd89e6b48
2 changed files with 9 additions and 8 deletions
+1
View File
@@ -81,6 +81,7 @@ lazy_static! {
};
}
#[allow(clippy::unnecessary_wraps)]
fn url_add_prefix(url: &str) -> Option<Cow<'_, str>> {
if url.starts_with('#') && !url.starts_with("#postcontent-") {
//if start with an #