Cleared the last warnings

This commit is contained in:
Leonard Lorenz 2020-10-26 10:56:05 +01:00
parent 4cbb673f15
commit a90ca863e7

View file

@ -26,11 +26,11 @@ pub fn id_valid(post_id: String) -> (bool, i32) {
} }
} }
pub fn replace_newlines(x: &String) -> String { pub fn replace_newlines(x: &str) -> String {
x.replace("\n", "<br>") x.replace("\n", "<br>")
} }
pub fn replace_br_tags(x: &String) -> String { pub fn replace_br_tags(x: &str) -> String {
x.replace("<br>", "\n") x.replace("<br>", "\n")
} }