Skip to content

Commit

Permalink
Fix build failure with optional enum types - Fix #3663
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Sep 29, 2023
1 parent a63ced0 commit 76cb352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/slicec-cs/src/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fn encode_type(
let encoder_extensions_class =
enum_ref.escape_scoped_identifier_with_suffix("SliceEncoderExtensions", namespace);
let name = enum_ref.cs_identifier(Case::Pascal);
format!("{encoder_extensions_class}.Encode{name}(ref {encoder_param}, {param});")
format!("{encoder_extensions_class}.Encode{name}(ref {encoder_param}, {value});")
}
_ => panic!("class and proxy types are handled in the outer match"),
};
Expand Down

0 comments on commit 76cb352

Please sign in to comment.