xso-proc: clippy run

Caught a bug hidden behind #[cfg(not(feature = "minidom"))]

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2025-04-07 21:04:16 +02:00
commit 4994ac20f9
7 changed files with 22 additions and 22 deletions

View file

@ -420,8 +420,13 @@ fn new_field(
})),
#[cfg(not(feature = "minidom"))]
XmlFieldMeta::Element { span, amount } => {
XmlFieldMeta::Element {
span,
amount,
default_,
} => {
let _ = amount;
let _ = default_;
Err(Error::new(
span,
"#[xml(element)] requires xso to be built with the \"minidom\" feature.",