Skip to content

Commit

Permalink
Merge pull request #110 from aumetra/match-unit-type
Browse files Browse the repository at this point in the history
Explicitly match unit type inside generated setters
  • Loading branch information
idanarye committed Aug 13, 2023
2 parents de2272b + ec55ee0 commit 628786a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typed-builder-macro/src/struct_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ impl<'a> StructInfo<'a> {

let descructuring = self.included_fields().map(|f| {
if f.ordinal == field.ordinal {
quote!(_)
quote!(())
} else {
let name = f.name;
name.to_token_stream()
Expand Down

0 comments on commit 628786a

Please sign in to comment.