Skip to content

Commit

Permalink
Merge pull request #3873 from Ten0/auto_type_syn_2_40
Browse files Browse the repository at this point in the history
Add support for syn 2.0.40's new Expr::Group to dsl::auto_type
  • Loading branch information
weiznich authored Jan 12, 2024
2 parents 2eaf4aa + 3ea89d5 commit 5f173ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dsl_auto_type/src/auto_type/expression_type_inference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ impl TypeInferrer<'_> {
expr,
type_hint.filter(|h| !matches!(h, syn::Type::Infer(_))),
) {
(syn::Expr::Group(syn::ExprGroup { expr, .. }), type_hint) => {
return self.try_infer_expression_type(expr, type_hint)
}
(
syn::Expr::Tuple(syn::ExprTuple {
elems: expr_elems, ..
Expand Down

0 comments on commit 5f173ab

Please sign in to comment.