Skip to content

Commit

Permalink
Allow braced structs when parsing ExprLet
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 23, 2024
1 parent 747f42f commit c6d87a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2117,7 +2117,7 @@ pub(crate) mod parsing {
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
impl Parse for ExprLet {
fn parse(input: ParseStream) -> Result<Self> {
let allow_struct = AllowStruct(false);
let allow_struct = AllowStruct(true);
expr_let(input, allow_struct)
}
}
Expand Down

0 comments on commit c6d87a7

Please sign in to comment.