Skip to content

style: include iter_on_single_items #798

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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