fix clippy in story editor

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon ThomasandClaude Opus 5.5 committed 2026-10-01 11:03:28 -04:00
1 parent d3516b96cf
commit 984435ed6f
1 file changed
+1 -1
+1 -1
View File
@@ -34,7 +34,7 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) {
ui.vertical(|ui| {
ui.set_width(130.0);
for (i, r) in story.para_ranges().iter().enumerate() {
let lines = (story.text[r.clone()].len() / 60).max(0) + 1;
let lines = story.text[r.clone()].len() / 60 + 1;
let style = &story.paras[i].style;
ui.label(egui::RichText::new(style).size(11.0).color(t.text_dim));
for _ in 1..lines {