Skip to content

Commit

Permalink
make oneofs exhausted (#7)
Browse files Browse the repository at this point in the history
We control our own code and this makes compile errors more
obvious.

Signed-off-by: Matt Klein <mklein@bitdrift.io>
  • Loading branch information
mattklein123 authored Dec 8, 2023
1 parent 83ce4e0 commit 73fab7d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion protobuf-codegen/src/gen/oneof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ impl<'a> OneofGen<'a> {
fn write_enum(&self, w: &mut CodeWriter) {
let derive = vec!["Clone", "PartialEq", "Debug"];
w.derive(&derive);
w.write_line("#[non_exhaustive]");
write_protoc_insertion_point_for_oneof(w, &self.customize.for_elem, &self.oneof.oneof);
w.pub_enum(&self.oneof.rust_name().ident.to_string(), |w| {
for variant in self.variants_except_group() {
Expand Down

0 comments on commit 73fab7d

Please sign in to comment.