Skip to content

Commit

Permalink
Handle invisible groups in from_expr
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbb authored and TedDriggs committed Apr 27, 2023
1 parent 8097397 commit c036162
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/from_meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ pub trait FromMeta: Sized {
fn from_expr(expr: &Expr) -> Result<Self> {
match *expr {
Expr::Lit(ref lit) => Self::from_value(&lit.lit),
Expr::Group(ref group) => Self::from_expr(&group.expr),
_ => Err(Error::unexpected_expr_type(expr)),
}
.map_err(|e| e.with_span(expr))
Expand Down

0 comments on commit c036162

Please sign in to comment.