We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50a814d commit 90a3132Copy full SHA for 90a3132
tests/enums_unit.rs
@@ -71,7 +71,7 @@ fn rejected_in_unit_enum_variants() {
71
.to_string(),
72
)
73
.map_err(|e| e.with_span(path)),
74
- Meta::List(list) => Choice::from_list(&[item.clone()])
+ Meta::List(list) => Choice::from_list(std::slice::from_ref(item))
75
.map_err(|e| e.with_span(&list.span())),
76
Meta::NameValue(n) => Err(darling::Error::custom(
77
"choice options are not set as name-value, use parentheses",
0 commit comments