mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-12 13:24:56 +00:00
fix clippy in story editor
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d3516b96cf
commit
984435ed6f
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user