You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
strum::Display and #[strum(default)] doesn't work with non-unit non-string variants. It should probably try to convert the enclosed tuple into a string?
#[derive(strum::Display)]
enum Color {
Red,
Blue,
Green,
}
#[derive(strum::Display)] <---- this fails: Mismatched types.
enum TestEnum {
#[strum(default)]
Color(Color),
}
The text was updated successfully, but these errors were encountered:
strum::Display and #[strum(default)] doesn't work with non-unit non-string variants. It should probably try to convert the enclosed tuple into a string?
The text was updated successfully, but these errors were encountered: