Skip to content

Commit

Permalink
style: include iter_on_single_items (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 authored Oct 1, 2024
1 parent b318350 commit aa2559e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ derive_partial_eq_without_eq = { level = "allow", priority = 1 }
empty_line_after_doc_comments = { level = "allow", priority = 1 }
fallible_impl_from = { level = "allow", priority = 1 }
imprecise_flops = { level = "allow", priority = 1 }
iter_on_single_items = { level = "allow", priority = 1 }
missing_const_for_fn = { level = "allow", priority = 1 }
nonstandard_macro_braces = { level = "allow", priority = 1 }
option_if_let_else = { level = "allow", priority = 1 }
Expand Down
2 changes: 1 addition & 1 deletion src/math/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ mod tests {
for gen in 1..P - 1 {
// every field element != 0 generates the whole field additively
let gen = PrimeField::from(gen as i64);
let mut generated: HashSet<PrimeField<P>> = [gen].into_iter().collect();
let mut generated: HashSet<PrimeField<P>> = std::iter::once(gen).collect();
let mut x = gen;
for _ in 0..P {
x = x + gen;
Expand Down

0 comments on commit aa2559e

Please sign in to comment.