Fix incorrect shadowing of world option in component bindgen macro options. (#5813)
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user