A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/protocolbuffers/protobuf/commit/aba2075ccb087e526621a2036c2c4c14964f8051 below:

Add #[non_exhaustive] on the oneof-case enum · protocolbuffers/protobuf@aba2075 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+1

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+1

-0

lines changed Original file line number Diff line number Diff line change

@@ -190,6 +190,7 @@ void GenerateOneofDefinition(Context& ctx, const OneofDescriptor& oneof) {

190 190

R"rs(

191 191

#[repr(C)]

192 192

#[derive(Debug, Copy, Clone, PartialEq, Eq)]

193 +

#[non_exhaustive]

193 194

#[allow(dead_code)]

194 195

pub enum $case_enum_name$ {

195 196

$cases$

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4