@@ -40,13 +40,13 @@ where
40
40
///
41
41
/// If `sieve_factory` signals that no more results can be created, returns `None`.
42
42
#[ 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 >
44
44
where
45
45
R : CryptoRngCore + Clone + Send + Sync ,
46
- T : Send ,
47
- S : Send + Sync + SieveFactory < T > ,
46
+ S : Send + Sync + SieveFactory ,
48
47
S :: Sieve : Send ,
49
- F : Sync + Fn ( & mut R , & T ) -> bool ,
48
+ S :: Item : Send ,
49
+ F : Sync + Fn ( & mut R , & S :: Item ) -> bool ,
50
50
{
51
51
let threadpool = rayon:: ThreadPoolBuilder :: new ( )
52
52
. num_threads ( threadcount)
@@ -86,7 +86,7 @@ impl<'a, R: CryptoRngCore, S: SieveFactory> SieveIterator<'a, R, S> {
86
86
}
87
87
}
88
88
89
- impl < ' a , R : CryptoRngCore , S : SieveFactory > Iterator for SieveIterator < ' a , R , S > {
89
+ impl < R : CryptoRngCore , S : SieveFactory > Iterator for SieveIterator < ' _ , R , S > {
90
90
type Item = S :: Item ;
91
91
92
92
fn next ( & mut self ) -> Option < Self :: Item > {
0 commit comments