Skip to content

Commit

Permalink
clippy on latest rust version
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeHartnell committed Sep 3, 2023
1 parent 426d139 commit c2c230d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ where
let one_sum: u64 = one.iter().sum();
let none_sum: u64 = none.iter().sum();

let mut sums = vec![zero_sum, one_sum, none_sum];
let mut sums = [zero_sum, one_sum, none_sum];
sums.sort_unstable();

// If none of the above wins or there is a tie between second and first choice.
Expand Down
2 changes: 1 addition & 1 deletion packages/dao-dao-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn merge_variants(metadata: TokenStream, left: TokenStream, right: TokenStream)
}),
) = (&mut left.data, right.data)
{
variants.extend(to_add.into_iter());
variants.extend(to_add);

quote! { #left }.into()
} else {
Expand Down

0 comments on commit c2c230d

Please sign in to comment.