Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't explicitly derive
Eq
for enums
I got bitten by this bug: tokio-rs/prost#332 when I added the enum `ShieldedProtocol` to the file `service.proto`. The problem is that `prost` implicitly derives `Eq` for enums, so deriving it explicitly via `type_attribute` causes a conflict. Lukily, there is another method `message_attribute` that operates only on messages and not enums.
- Loading branch information