Skip to content

Commit

Permalink
temporarily add back null as skipable type
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Aug 25, 2023
1 parent d589f96 commit 9fbf2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/candid/src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl<'de> IDLDeserialize<'de> {
if self.de.types.is_empty() {
if matches!(
expected_type.as_ref(),
TypeInner::Opt(_) | TypeInner::Reserved
TypeInner::Opt(_) | TypeInner::Reserved | TypeInner::Null
) {
self.de.expect_type = expected_type;
self.de.wire_type = TypeInner::Reserved.into();
Expand Down

0 comments on commit 9fbf2a9

Please sign in to comment.