cleanup of various clippy lints, bad practices and simplificaiton of some code
Signed-off-by: Jade <obsidianical@gmail.com>
This commit is contained in:
parent
fa67edc8c5
commit
528a7b6899
11 changed files with 34 additions and 45 deletions
|
@ -25,7 +25,7 @@ pub fn html_highlight(text: &str, extension: &str) -> String {
|
|||
|
||||
let mut highlighted_content2: String = String::from("");
|
||||
for line in highlighted_content.lines() {
|
||||
highlighted_content2 += &*format!("<code-line>{}</code-line>\n", line);
|
||||
highlighted_content2 += &*format!("<code-line>{line}</code-line>\n");
|
||||
}
|
||||
|
||||
// Rewrite colours to ones that are compatible with water.css and both light/dark modes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue