Skip to content

Commit 3a838de

Browse files
Fix clippy::unnecessary_semicolon lints (#270)
1 parent dcb31b2 commit 3a838de

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

examples/swash_render/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ fn main() {
196196
}
197197
}
198198
}
199-
};
199+
}
200200
}
201201
}
202202

@@ -354,5 +354,5 @@ fn render_glyph(
354354
}
355355
}
356356
}
357-
};
357+
}
358358
}

examples/tiny_skia_render/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ fn main() {
130130
pen.set_color(foreground_color);
131131
pen.fill_rect(inline_box.width, inline_box.height);
132132
}
133-
};
133+
}
134134
}
135135
}
136136

examples/vello_editor/src/text.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ impl Editor {
164164
drv.collapse_selection();
165165
} else {
166166
drv.select_all();
167-
};
167+
}
168168
}
169169
Key::Named(NamedKey::ArrowLeft) => {
170170
if action_mod {
@@ -307,7 +307,7 @@ impl Editor {
307307
2 => drv.select_word_at_point(cursor_pos.0, cursor_pos.1),
308308
3 => drv.select_line_at_point(cursor_pos.0, cursor_pos.1),
309309
_ => drv.move_to_point(cursor_pos.0, cursor_pos.1),
310-
};
310+
}
311311
}
312312
}
313313
}
@@ -369,7 +369,7 @@ impl Editor {
369369
if self.cursor_visible {
370370
if let Some(cursor) = self.editor.cursor_geometry(1.5) {
371371
scene.fill(Fill::NonZero, transform, palette::css::WHITE, None, &cursor);
372-
};
372+
}
373373
}
374374
let layout = self.editor.layout(&mut self.font_cx, &mut self.layout_cx);
375375
for line in layout.lines() {

parley/src/layout/line/greedy.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ impl<'a, B: Brush> BreakLines<'a, B> {
221221
if try_commit_line!(BreakReason::Regular) {
222222
return self.start_new_line();
223223
}
224-
};
224+
}
225225
}
226226
}
227227
LayoutItemKind::TextRun => {

parley/src/shape.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ pub(crate) fn shape_text<'a, B: Brush>(
176176
current_box = inline_box_iter.next();
177177
} else {
178178
break;
179-
};
179+
}
180180
}
181181

182182
if break_run && !text_range.is_empty() {

0 commit comments

Comments
 (0)