G5: rustfmt dynamic symbol part paint paths

This commit is contained in:
Fabio William Conceição
2026-11-09 12:18:55 +00:00
parent 1e278a3dff
commit 1ff0fd62fc
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -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<Value> {
+1 -1
View File
@@ -985,7 +985,7 @@ fn transparency(s: &mut Session, p: &Value) -> Result<Value> {
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}")))?))
}