We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e313a7 commit ada50b0Copy full SHA for ada50b0
serde_derive/src/de.rs
@@ -1247,19 +1247,19 @@ fn prepare_enum_variant_enum(
1247
}
1248
};
1249
1250
- let (ignore_variant, fallthrough) = if let Some(other_idx) = other_idx {
+ let fallthrough = if let Some(other_idx) = other_idx {
1251
let ignore_variant = variant_names_idents[other_idx].1.clone();
1252
let fallthrough = quote!(_serde::__private::Ok(__Field::#ignore_variant));
1253
- (None, Some(fallthrough))
+ Some(fallthrough)
1254
} else {
1255
- (None, None)
+ None
1256
1257
1258
let variant_visitor = Stmts(deserialize_generated_identifier(
1259
&variant_names_idents,
1260
cattrs,
1261
true,
1262
- ignore_variant,
+ None,
1263
fallthrough,
1264
));
1265
0 commit comments