Skip to content

Commit 90a3132

Browse files
committed
Fix clippy violation
1 parent 50a814d commit 90a3132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/enums_unit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fn rejected_in_unit_enum_variants() {
7171
.to_string(),
7272
)
7373
.map_err(|e| e.with_span(path)),
74-
Meta::List(list) => Choice::from_list(&[item.clone()])
74+
Meta::List(list) => Choice::from_list(std::slice::from_ref(item))
7575
.map_err(|e| e.with_span(&list.span())),
7676
Meta::NameValue(n) => Err(darling::Error::custom(
7777
"choice options are not set as name-value, use parentheses",

0 commit comments

Comments
 (0)