Closed ghost closed 1 year ago
Using a #[serde(tag = "...")] attribute on an enum containing a tuple variant with one element will be compiled without any compile-time error.
#[serde(tag = "...")]
Before:
Using a #[serde(tag = "...")] attribute on an enum containing a tuple variant is an error at compile time.
After:
Using a #[serde(tag = "...")] attribute on an enum containing a tuple variant with more than one element is an error at compile time.
serde/src/private/ser.rs#L96-L336
Using a
#[serde(tag = "...")]
attribute on an enum containing a tuple variant with one element will be compiled without any compile-time error.Before:
After: