mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-19 00:27:49 +00:00
#2468 moved SVG import onto craft_svg::tree::parse, which runs the size, entity, attribute and nesting checks itself, but left FigCraft's own scanners (too_wide, too_deep, nesting) and import/budget.rs unused and import.rs unformatted: main failed cargo fmt, clippy -D warnings and the svg tests, which still passed budget::Limits to import_within. The dead code goes; budget_tests use craft-svg's tree::Limits (bytes, embedded_bytes, embedded_depth) and its error texts, and hostile_tests check attribute width with craft_svg::guard::too_wide at the default limits and the nesting refusal at craft-svg's 256 levels.