Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdplm committed Oct 21, 2024
1 parent 5c7b5f4 commit 52024e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ mod traits;
pub use presets::{generate_prime_with_rng, generate_safe_prime_with_rng, is_prime_with_rng, is_safe_prime_with_rng};
pub use traits::RandomPrimeWithRng;

#[cfg(feature = "rayon")]
pub use presets::par_generate_prime_with_rng;
#[cfg(feature = "default-rng")]
pub use presets::{generate_prime, generate_safe_prime, is_prime, is_safe_prime};
2 changes: 1 addition & 1 deletion src/presets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ where
is_prime_with_rng(&mut rng, c)
}) {
// TODO(dp): This clone is very annoying.
Some(p) => return p.clone(),
Some(p) => p.clone(),
None => par_generate_prime_with_rng(rng, bit_length.get()),
}
})
Expand Down

0 comments on commit 52024e3

Please sign in to comment.