Skip to content

Commit 4768b8a

Browse files
committed
review: simplify WAST parsing
1 parent b5b9267 commit 4768b8a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/wast/src/component/func.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -506,10 +506,7 @@ impl<'a> Parse<'a> for CanonThreadSpawnIndirect<'a> {
506506
fn parse(parser: Parser<'a>) -> Result<Self> {
507507
parser.parse::<kw::thread_spawn_indirect>()?;
508508
let ty = parser.parse()?;
509-
let table = parser.parens(|parser| {
510-
let span = parser.parse::<kw::table>()?.0;
511-
parse_trailing_item_ref(kw::table(span), parser)
512-
})?;
509+
let table = parser.parens(|p| p.parse())?;
513510
Ok(Self { ty, table })
514511
}
515512
}

0 commit comments

Comments
 (0)