From 2c1a1526df405a13c79c189a808efd7c4ec04386 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Sat, 10 Oct 2026 06:27:19 +0700 Subject: [PATCH] Fix clippy on main: Create Outlines passes the text, not a reference to it needless_borrow from #850, which a stale lint result let through. Co-Authored-By: Claude Opus 5.5 --- crates/engine/src/cmd/typecmd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/engine/src/cmd/typecmd.rs b/crates/engine/src/cmd/typecmd.rs index 4d985a44..2395b3f5 100644 --- a/crates/engine/src/cmd/typecmd.rs +++ b/crates/engine/src/cmd/typecmd.rs @@ -252,7 +252,7 @@ fn create_outlines(s: &mut Session, _: &Value) -> Result { children.push(Arc::new(node)); } // Underline and strikethrough bars become paths of their run's paint too (#847). - for (run, bar) in vectorcraft_text::decorations(&lay, vectorcraft_text::FontDb::global(), &t) { + for (run, bar) in vectorcraft_text::decorations(&lay, vectorcraft_text::FontDb::global(), t) { let st = t.runs.get(run).map(|r| r.style.clone()).unwrap_or_else(|| t.first_style()); let mut node = shape_node(d, PathData::from_bezpath(&bar).transformed(t.xf), None); node.appearance = st.appearance();