Skip to content

Commit

Permalink
fixes an issue introduced in bytecodealliance#9288 where an additiona…
Browse files Browse the repository at this point in the history
…l comma token is erroneously consumed. this meant if `path` was not the last property in the bindgen options, you would see an error "expected ,"
  • Loading branch information
Lochlan Wansbrough committed Sep 28, 2024
1 parent 52114c8 commit cfa569c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/component-macro/src/bindgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,6 @@ impl Parse for Opt {
let list = Punctuated::<_, Token![,]>::parse_terminated(&contents)?;

paths.extend(list.into_iter());

if input.peek(Token![,]) {
input.parse::<Token![,]>()?;
}
} else {
return Err(l.error());
};
Expand Down

0 comments on commit cfa569c

Please sign in to comment.