Skip to content

Commit

Permalink
Merge pull request #1671 from dtolnay/exprlet
Browse files Browse the repository at this point in the history
Allow braced structs when parsing ExprLet
  • Loading branch information
dtolnay authored May 23, 2024
2 parents 747f42f + c6d87a7 commit 4f0a23f
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 4f0a23f

Please sign in to comment.