Cleared the last warnings
This commit is contained in:
parent
4cbb673f15
commit
a90ca863e7
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue