diff --git a/crates/xfa/src/pdf/strip.rs b/crates/xfa/src/pdf/strip.rs index a13e1b5218..686e356f0a 100644 --- a/crates/xfa/src/pdf/strip.rs +++ b/crates/xfa/src/pdf/strip.rs @@ -151,7 +151,7 @@ pub fn strip(doc: &mut Document) -> Result { } // One XDP: the packets it holds are the envelope's children. let text = s.decoded_within(64 << 20).ok().and_then(|b| crate::packets::decode(&b)).map(|(t, _)| t).unwrap_or_default(); - let opts = crate::xml::ParsingOptions { allow_dtd: false, nodes_limit: 1_000_000, ..Default::default() }; + let opts = crate::xml::ParsingOptions { allow_dtd: false, nodes_limit: 1_000_000 }; if crate::xml_nesting_depth(&text) <= crate::MAX_XML_DEPTH && let Ok(parsed) = crate::xml::Document::parse_with_options(&text, opts) {