Skip to content

Commit 9a1e747

Browse files
committed
Clippy fixes
1 parent f763bc6 commit 9a1e747

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/generic.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ where
4040
///
4141
/// If `sieve_factory` signals that no more results can be created, returns `None`.
4242
#[cfg(feature = "multicore")]
43-
pub fn par_sieve_and_find<R, S, T, F>(rng: &mut R, sieve_factory: S, predicate: F, threadcount: usize) -> Option<T>
43+
pub fn par_sieve_and_find<R, S, F>(rng: &mut R, sieve_factory: S, predicate: F, threadcount: usize) -> Option<S::Item>
4444
where
4545
R: CryptoRngCore + Clone + Send + Sync,
46-
T: Send,
47-
S: Send + Sync + SieveFactory<T>,
46+
S: Send + Sync + SieveFactory,
4847
S::Sieve: Send,
49-
F: Sync + Fn(&mut R, &T) -> bool,
48+
S::Item: Send,
49+
F: Sync + Fn(&mut R, &S::Item) -> bool,
5050
{
5151
let threadpool = rayon::ThreadPoolBuilder::new()
5252
.num_threads(threadcount)
@@ -86,7 +86,7 @@ impl<'a, R: CryptoRngCore, S: SieveFactory> SieveIterator<'a, R, S> {
8686
}
8787
}
8888

89-
impl<'a, R: CryptoRngCore, S: SieveFactory> Iterator for SieveIterator<'a, R, S> {
89+
impl<R: CryptoRngCore, S: SieveFactory> Iterator for SieveIterator<'_, R, S> {
9090
type Item = S::Item;
9191

9292
fn next(&mut self) -> Option<Self::Item> {

0 commit comments

Comments
 (0)