diff --git a/crates/svg/src/tree.rs b/crates/svg/src/tree.rs index 613e298ff1..4e2e74516f 100644 --- a/crates/svg/src/tree.rs +++ b/crates/svg/src/tree.rs @@ -170,6 +170,7 @@ pub struct Preflight<'s> { xml: roxmltree::Document<'s>, depth: usize, /// [`height`]: the nesting usvg converts, references followed. + #[cfg_attr(not(feature = "tree"), expect(dead_code, reason = "only the embedded-image resolver reads it"))] height: usize, }