Ignore serde(crate = ...) (#447)

This commit is contained in:
Gustavo Shigueo
2025-10-14 16:28:10 -03:00
committed by GitHub
parent 1dce529709
commit 57e44b103f
2 changed files with 10 additions and 0 deletions

View File

@@ -289,5 +289,10 @@ impl_parse! {
"content" => out.0.content = Some(parse_assign_str(input)?),
"untagged" => out.0.untagged = true,
"bound" => out.0.bound = Some(parse_bound(input)?),
// parse #[serde(crate = "...")] to not emit a warning
"crate" => {
parse_assign_str(input)?;
}
}
}

View File

@@ -180,5 +180,10 @@ impl_parse! {
parse_assign_str(input)?;
}
},
// parse #[serde(crate = "...")] to not emit a warning
"crate" => {
parse_assign_str(input)?;
}
}
}