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:
Dylan M. Taylor
2026-10-24 02:34:26 +00:00
co-authored by Claude Opus 5.5
parent b857592948
commit 1b9227a897
2 changed files with 2 additions and 5 deletions
@@ -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]
+1 -1
View File
@@ -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();