Merge pull request #853 from storytold/fix/clippy-typecmd-borrow

Fix clippy on main: Create Outlines passes the text, not a reference to it
This commit is contained in:
BFlat authored and GitHub committed 2026-10-10 06:35:13 +07:00
commit 569b4ac240
1 file changed
+1 -1
+1 -1
View File
@@ -252,7 +252,7 @@ fn create_outlines(s: &mut Session, _: &Value) -> Result<Value> {
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();