Fix incorrect shadowing of world option in component bindgen macro options. (#5813)

This commit is contained in:
Peter Huene
2023-02-17 07:08:54 -08:00
committed by GitHub
parent c8fa1b845f
commit 4fc768df36

View File

@@ -53,7 +53,6 @@ impl Parse for Config {
let content; let content;
syn::braced!(content in input); syn::braced!(content in input);
let fields = Punctuated::<Opt, Token![,]>::parse_terminated(&content)?; let fields = Punctuated::<Opt, Token![,]>::parse_terminated(&content)?;
let mut world = None;
for field in fields.into_pairs() { for field in fields.into_pairs() {
match field.into_value() { match field.into_value() {
Opt::Path(s) => { Opt::Path(s) => {