From 1ff0fd62fcea819e0ad0f26d11f9e10186a9f5c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20William=20Concei=C3=A7=C3=A3o?= Date: Mon, 9 Nov 2026 12:18:55 +0000 Subject: [PATCH] G5: rustfmt dynamic symbol part paint paths --- crates/engine/src/cmd/brushsym/dynamic.rs | 4 +--- crates/engine/src/cmd/paint.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/engine/src/cmd/brushsym/dynamic.rs b/crates/engine/src/cmd/brushsym/dynamic.rs index 02c1d666cb..32edc44f86 100644 --- a/crates/engine/src/cmd/brushsym/dynamic.rs +++ b/crates/engine/src/cmd/brushsym/dynamic.rs @@ -94,9 +94,7 @@ pub(crate) fn edit_part(s: &mut Session, id: NodeId, path: &[u32], label: &str, /// or type while an object of a symbol instance's art is selected ([`selected_part`]), and of /// selecting any other object of the art. pub(crate) fn part_only() -> EngineError { - EngineError::Other( - "Only the fill, stroke, opacity and blend of a path, compound path or type selected in a symbol instance can change".into(), - ) + EngineError::Other("Only the fill, stroke, opacity and blend of a path, compound path or type selected in a symbol instance can change".into()) } pub(super) fn symbol_instance_select_part(s: &mut Session, p: &Value) -> Result { diff --git a/crates/engine/src/cmd/paint.rs b/crates/engine/src/cmd/paint.rs index 0eeae8f89d..4cc4bbc2e4 100644 --- a/crates/engine/src/cmd/paint.rs +++ b/crates/engine/src/cmd/paint.rs @@ -985,7 +985,7 @@ fn transparency(s: &mut Session, p: &Value) -> Result { let blend = match p.get("blend") { None => None, Some(Value::Null) => Some(None), - Some(b) => { + Some(b) => { let name = b.as_str().ok_or_else(|| bad(C, "blend must be a mode name"))?; Some(Some(BlendMode::parse(name).ok_or_else(|| bad(C, format!("unknown blend mode {b}")))?)) }