Skip to content

Commit 7f7809f

Browse files
committed
codegen: Use shorthand initialization in EnumBuilder.
This was introduced in #1850.
1 parent 48808ed commit 7f7809f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codegen/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2515,8 +2515,8 @@ impl<'a> EnumBuilder<'a> {
25152515
}
25162516

25172517
EnumBuilder::Consts {
2518-
repr: repr,
2519-
variants: variants,
2518+
repr,
2519+
variants,
25202520
codegen_depth: enum_codegen_depth,
25212521
}
25222522
}

0 commit comments

Comments
 (0)