From 1b9227a897e384fceefe421bc112b9bac30b76fd Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sat, 24 Oct 2026 02:34:26 +0000 Subject: [PATCH] fix: restore test closure and wildcard import that broke compilation Co-Authored-By: Claude Opus 5.5 --- crates/engine/src/atn_cmds/layer_props_tests.rs | 5 +---- crates/io/tests/it/psd_kerning.rs | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/engine/src/atn_cmds/layer_props_tests.rs b/crates/engine/src/atn_cmds/layer_props_tests.rs index 25154cf611..155729923a 100644 --- a/crates/engine/src/atn_cmds/layer_props_tests.rs +++ b/crates/engine/src/atn_cmds/layer_props_tests.rs @@ -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] diff --git a/crates/io/tests/it/psd_kerning.rs b/crates/io/tests/it/psd_kerning.rs index d9fb3be6fd..8b85c4f3ba 100644 --- a/crates/io/tests/it/psd_kerning.rs +++ b/crates/io/tests/it/psd_kerning.rs @@ -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();