mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-24 09:57:08 -06:00
fix: restore test closure and wildcard import that broke compilation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
b857592948
commit
1b9227a897
@@ -1,7 +1,4 @@
|
||||
use photocraft_psd::atn;
|
||||
use serde_json::json;
|
||||
|
||||
use super::{Action, Session, Skipped, enm, export, export_item, get_obj, layer_ref, pct, text, trimmed};
|
||||
use super::*;
|
||||
|
||||
/// PhotoCraft's own roundtrip accepts a combined Set, but Photoshop applies only its rename.
|
||||
#[test]
|
||||
|
||||
@@ -224,7 +224,7 @@ fn add_type_layer(objects: &[(&str, &str)], kept: &[(&str, i32)], at: usize) ->
|
||||
.iter()
|
||||
.map(|l| {
|
||||
let LayerContent::Text(t) = &l.content else { panic!("not text") };
|
||||
let index = t.psd_raw.as_deref().and_then(photocraft_text::psd::text_index);
|
||||
let index = t.psd_raw.as_deref().and_then(|d| photocraft_text::psd::text_index(d));
|
||||
(l.name.clone(), index, t.char_runs().iter().flat_map(|r| r.style.features.iter().filter(|f| f.tag != "calt").map(|f| f.tag.clone())).collect())
|
||||
})
|
||||
.collect();
|
||||
|
||||
Reference in New Issue
Block a user