summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/markdown/src/main.rs1
-rw-r--r--highlighter/src/lib.rs1
2 files changed, 1 insertions, 1 deletions
diff --git a/examples/markdown/src/main.rs b/examples/markdown/src/main.rs
index d902a4f7..6b7adc12 100644
--- a/examples/markdown/src/main.rs
+++ b/examples/markdown/src/main.rs
@@ -34,6 +34,7 @@ impl Markdown {
widget::focus_next(),
)
}
+
fn update(&mut self, message: Message) {
match message {
Message::Edit(action) => {
diff --git a/highlighter/src/lib.rs b/highlighter/src/lib.rs
index deee199f..83a15cb1 100644
--- a/highlighter/src/lib.rs
+++ b/highlighter/src/lib.rs
@@ -169,7 +169,6 @@ impl Highlight {
pub fn font(&self) -> Option<Font> {
self.0.font_style.and_then(|style| {
let bold = style.contains(highlighting::FontStyle::BOLD);
-
let italic = style.contains(highlighting::FontStyle::ITALIC);
if bold || italic {