From 6015b8d3767c5a94a499c14873be53b66d242890 Mon Sep 17 00:00:00 2001 From: Alex Konradi Date: Mon, 2 Dec 2024 11:17:03 -0500 Subject: [PATCH] Propagate oneofs_non_exhaustive value When constructing Customize instances for fields and inner messages, propagate the oneofs_non_exhaustive value. --- protobuf-codegen/src/customize/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protobuf-codegen/src/customize/mod.rs b/protobuf-codegen/src/customize/mod.rs index f04a63858..ebc351640 100644 --- a/protobuf-codegen/src/customize/mod.rs +++ b/protobuf-codegen/src/customize/mod.rs @@ -231,6 +231,9 @@ impl Customize { if let Some(v) = btreemap { self.btreemap = Some(v); } + if let Some(v) = oneofs_non_exhaustive { + self.oneofs_non_exhaustive = Some(v); + } } /// Update unset fields of self with fields from other customize