From 984435ed6fd859615f51730cbf0a507e06ff3f01 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 1 Oct 2026 11:03:28 -0400 Subject: [PATCH] fix clippy in story editor Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/story_editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/story_editor.rs b/crates/ui-egui/src/story_editor.rs index 9c0563823..d0eacd1df 100644 --- a/crates/ui-egui/src/story_editor.rs +++ b/crates/ui-egui/src/story_editor.rs @@ -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 {