From ec55ee07fe875015caa595eb80d6bd12e7a325c3 Mon Sep 17 00:00:00 2001 From: aumetra Date: Sun, 13 Aug 2023 14:00:07 +0200 Subject: [PATCH] Change underscore to unit --- typed-builder-macro/src/struct_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typed-builder-macro/src/struct_info.rs b/typed-builder-macro/src/struct_info.rs index 01860833..f6e70b1e 100644 --- a/typed-builder-macro/src/struct_info.rs +++ b/typed-builder-macro/src/struct_info.rs @@ -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()