Skip to content

Commit

Permalink
Treat enums as primitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcorre authored and stepancheg committed Feb 25, 2024
1 parent 167c58e commit 6d92003
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions protobuf-codegen/src/gen/field/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,12 @@ impl<'a> FieldGen<'a> {
| Type::TYPE_SFIXED32
| Type::TYPE_SFIXED64
| Type::TYPE_SINT32
| Type::TYPE_SINT64 => true,
| Type::TYPE_SINT64
| Type::TYPE_ENUM => true,
Type::TYPE_STRING
| Type::TYPE_GROUP
| Type::TYPE_MESSAGE
| Type::TYPE_BYTES
| Type::TYPE_ENUM => false,
| Type::TYPE_BYTES => false,
};
let packed = field
.field
Expand Down

0 comments on commit 6d92003

Please sign in to comment.