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 84d1c53 commit 6a097ecCopy full SHA for 6a097ec
test_suite/tests/test_macros.rs
@@ -987,6 +987,18 @@ fn test_internally_tagged_struct_variant_containing_unit_variant() {
987
Log { level: Level },
988
}
989
990
+ // Canary test that ensures that we use adequate enum representation that
991
+ // is possible to deserialize regardless of possible buffering in internally
992
+ // tagged enum implementation
993
+ assert_de_tokens(
994
+ &Level::Info,
995
+ &[
996
+ Token::Enum { name: "Level" },
997
+ Token::BorrowedStr("Info"),
998
+ Token::Unit,
999
+ ],
1000
+ );
1001
+
1002
assert_de_tokens(
1003
&Message::Log { level: Level::Info },
1004
&[
0 commit comments