Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ahl committed Sep 8, 2023
1 parent 8da2058 commit 94fbc3d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test_suite/tests/test_annotations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2381,7 +2381,7 @@ fn test_partially_untagged_enum_desugared() {
}

#[test]
fn test_partially_untagged_tagged_enum() {
fn test_partially_untagged_internally_tagged_enum() {
#[derive(Serialize, Deserialize, PartialEq, Debug)]
#[serde(tag = "t")]
enum Data {
Expand All @@ -2408,17 +2408,20 @@ fn test_partially_untagged_tagged_enum() {
assert_de_tokens(&data, &[Token::U32(42)]);

// TODO test error output
}

#[test]
fn test_partially_untagged_adjacently_tagged_enum() {
#[derive(Serialize, Deserialize, PartialEq, Debug)]
#[serde(tag = "t", content = "c")]
enum Data2 {
enum Data {
A(u32),
B,
#[serde(untagged)]
Var(u32),
}

let data = Data2::A(7);
let data = Data::A(7);

assert_de_tokens(
&data,
Expand All @@ -2432,7 +2435,7 @@ fn test_partially_untagged_tagged_enum() {
],
);

let data = Data2::Var(42);
let data = Data::Var(42);

assert_de_tokens(&data, &[Token::U32(42)]);

Expand Down

0 comments on commit 94fbc3d

Please sign in to comment.