mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
Batch 13: rustfmt the resolved files
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
55a8d917de
commit
072dfd3724
2 files changed
+6
-3
No files matched your search
@@ -615,7 +615,11 @@ fn legacy_rgb_replace_color_and_ordinary_gradient_exports_are_unchanged() {
|
||||
vec![("image.adjustments.gradientMap".into(), json!({"stops":[[0,"#000000"],[1,"#ffffff"]]}))],
|
||||
);
|
||||
let (b, _) = atn_cmds::export("Ordinary", &[&action], &[], false).unwrap();
|
||||
assert_eq!(atn::parse(&b).unwrap().actions[0].items[0].event, AtnEvent::name("gradientMapEvent"), "an ordinary Gradient Map saves as the string event (#10702)");
|
||||
assert_eq!(
|
||||
atn::parse(&b).unwrap().actions[0].items[0].event,
|
||||
AtnEvent::name("gradientMapEvent"),
|
||||
"an ordinary Gradient Map saves as the string event (#10702)"
|
||||
);
|
||||
}
|
||||
|
||||
/// Replacement preserves alpha and refuses locked or profile-incompatible surfaces before editing.
|
||||
|
||||
@@ -164,8 +164,7 @@ pub fn patched(current: &UiState, v: &serde_json::Value) -> Result<Filter, Strin
|
||||
}
|
||||
let mut f = Filter::of(current);
|
||||
if let Some(by) = o.get("by") {
|
||||
f.by = serde_json::from_value(by.clone())
|
||||
.map_err(|_| "layerFilter.by must be kind, name, mode, color, smartObject or artboard".to_string())?;
|
||||
f.by = serde_json::from_value(by.clone()).map_err(|_| "layerFilter.by must be kind, name, mode, color, smartObject or artboard".to_string())?;
|
||||
}
|
||||
if let Some(kinds) = o.get("kinds") {
|
||||
let list = kinds.as_array().ok_or("layerFilter.kinds must be a list")?;
|
||||
|
||||
Reference in new issue
Block a user