mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
fix: restore test closure and wildcard import that broke compilation
This commit is contained in:
1 parent
1191c44749
commit
4b950a65fa
2 files changed
+2
-5
No files matched your search
@@ -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