Skip to content

Commit 11230c3

Browse files
committed
Update serde tokenization
Recent Serde changes ([1], [2]) changed the internal representation of enums, breaking our test. [1]: serde-rs/serde#2496 [2]: serde-rs/serde#2505
1 parent a9df3db commit 11230c3

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

aggregator_api/src/lib.rs

+12-3
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,10 @@ mod tests {
17261726
len: 2,
17271727
},
17281728
Token::Str("type"),
1729-
Token::Str("DapAuth"),
1729+
Token::UnitVariant {
1730+
name: "AuthenticationToken",
1731+
variant: "DapAuth",
1732+
},
17301733
Token::Str("token"),
17311734
Token::Str("ZW5jb2RlZA"),
17321735
Token::StructEnd,
@@ -1841,7 +1844,10 @@ mod tests {
18411844
len: 2,
18421845
},
18431846
Token::Str("type"),
1844-
Token::Str("DapAuth"),
1847+
Token::UnitVariant {
1848+
name: "AuthenticationToken",
1849+
variant: "DapAuth",
1850+
},
18451851
Token::Str("token"),
18461852
Token::Str("Y29sbGVjdG9yLWFiY2RlZjAw"),
18471853
Token::StructEnd,
@@ -1852,7 +1858,10 @@ mod tests {
18521858
len: 2,
18531859
},
18541860
Token::Str("type"),
1855-
Token::Str("DapAuth"),
1861+
Token::UnitVariant {
1862+
name: "AuthenticationToken",
1863+
variant: "DapAuth",
1864+
},
18561865
Token::Str("token"),
18571866
Token::Str("Y29sbGVjdG9yLWFiY2RlZjAw"),
18581867
Token::StructEnd,

0 commit comments

Comments
 (0)