End statements with semicolon (clippy::semicolon_if_nothing_returned)

This commit is contained in:
Emil Ernerfeldt
2021-10-20 16:46:57 +02:00
parent ab3be8aca3
commit d97a369c44
35 changed files with 71 additions and 72 deletions
@@ -69,7 +69,7 @@ impl EasyMarkEditor {
} else {
ScrollArea::vertical()
.id_source("source")
.show(ui, |ui| self.editor_ui(ui))
.show(ui, |ui| self.editor_ui(ui));
}
}
@@ -15,7 +15,7 @@ impl MemoizedEasymarkHighlighter {
if (&self.visuals, self.code.as_str()) != (visuals, code) {
self.visuals = visuals.clone();
self.code = code.to_owned();
self.output = highlight_easymark(visuals, code)
self.output = highlight_easymark(visuals, code);
}
self.output.clone()
}
@@ -3,7 +3,7 @@ use egui::*;
/// Parse and display a VERY simple and small subset of Markdown.
pub fn easy_mark(ui: &mut Ui, easy_mark: &str) {
easy_mark_it(ui, easy_mark::Parser::new(easy_mark))
easy_mark_it(ui, easy_mark::Parser::new(easy_mark));
}
pub fn easy_mark_it<'em>(ui: &mut Ui, items: impl Iterator<Item = easy_mark::Item<'em>>) {