From 8bd911e2ea0d4461580105209ae11d9d3ec21fd0 Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Thu, 12 Apr 2018 01:56:21 +0100 Subject: [PATCH] expose_oneof is true by default now --- protobuf-codegen/src/message.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protobuf-codegen/src/message.rs b/protobuf-codegen/src/message.rs index dbc048ad1..1f247fc93 100644 --- a/protobuf-codegen/src/message.rs +++ b/protobuf-codegen/src/message.rs @@ -51,7 +51,7 @@ impl<'a> MessageGen<'a> { } fn expose_oneof(&self) -> bool { - self.customize.expose_oneof.unwrap_or(false) + self.customize.expose_oneof.unwrap_or(true) } fn oneofs(&'a self) -> Vec> {