Skip to content

Commit

Permalink
Merge pull request #2794 from dtolnay/neverread
Browse files Browse the repository at this point in the history
Temporarily ignore collection_is_never_read on FlattenSkipDeserializing
  • Loading branch information
dtolnay authored Aug 11, 2024
2 parents fc55ac7 + 536221b commit 84c7419
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions test_suite/tests/test_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -720,11 +720,14 @@ fn test_gen() {
flat: StdOption<T>,
}

#[derive(Serialize, Deserialize)]
pub struct FlattenSkipDeserializing<T> {
#[serde(flatten, skip_deserializing)]
flat: T,
}
#[allow(clippy::collection_is_never_read)] // FIXME
const _: () = {
#[derive(Serialize, Deserialize)]
pub struct FlattenSkipDeserializing<T> {
#[serde(flatten, skip_deserializing)]
flat: T,
}
};

#[derive(Serialize, Deserialize)]
#[serde(untagged)]
Expand Down

0 comments on commit 84c7419

Please sign in to comment.