Skip to content

Commit

Permalink
Fix clippy::unnecessary_semicolon lints (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Feb 7, 2025
1 parent dcb31b2 commit 3a838de
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/swash_render/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ fn main() {
}
}
}
};
}
}
}

Expand Down Expand Up @@ -354,5 +354,5 @@ fn render_glyph(
}
}
}
};
}
}
2 changes: 1 addition & 1 deletion examples/tiny_skia_render/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ fn main() {
pen.set_color(foreground_color);
pen.fill_rect(inline_box.width, inline_box.height);
}
};
}
}
}

Expand Down
6 changes: 3 additions & 3 deletions examples/vello_editor/src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl Editor {
drv.collapse_selection();
} else {
drv.select_all();
};
}
}
Key::Named(NamedKey::ArrowLeft) => {
if action_mod {
Expand Down Expand Up @@ -307,7 +307,7 @@ impl Editor {
2 => drv.select_word_at_point(cursor_pos.0, cursor_pos.1),
3 => drv.select_line_at_point(cursor_pos.0, cursor_pos.1),
_ => drv.move_to_point(cursor_pos.0, cursor_pos.1),
};
}
}
}
}
Expand Down Expand Up @@ -369,7 +369,7 @@ impl Editor {
if self.cursor_visible {
if let Some(cursor) = self.editor.cursor_geometry(1.5) {
scene.fill(Fill::NonZero, transform, palette::css::WHITE, None, &cursor);
};
}
}
let layout = self.editor.layout(&mut self.font_cx, &mut self.layout_cx);
for line in layout.lines() {
Expand Down
2 changes: 1 addition & 1 deletion parley/src/layout/line/greedy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ impl<'a, B: Brush> BreakLines<'a, B> {
if try_commit_line!(BreakReason::Regular) {
return self.start_new_line();
}
};
}
}
}
LayoutItemKind::TextRun => {
Expand Down
2 changes: 1 addition & 1 deletion parley/src/shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ pub(crate) fn shape_text<'a, B: Brush>(
current_box = inline_box_iter.next();
} else {
break;
};
}
}

if break_run && !text_range.is_empty() {
Expand Down

0 comments on commit 3a838de

Please sign in to comment.