Skip to content

Commit

Permalink
Make trim_matches comment more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
escritorio-gustavo committed Jan 25, 2024
1 parent 5258e30 commit 708016f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros/src/types/enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ fn format_variant(
// To be flattened, an internally tagged enum must not be
// surrounded by braces, otherwise each variant will look like
// { "tag": "name", { /* ...data */ } }
//
// which is invalid since there is no key before the brackets
// when we want it to look like
// { "tag": "name", /* ...data */ }
#inline_flattened.trim_matches(&['{', '}', ' '])
)
},
Expand Down

0 comments on commit 708016f

Please sign in to comment.