File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -739,7 +739,7 @@ impl Iterator {
739
739
// Count the result
740
740
self . count += 1 ;
741
741
// Periodically yield
742
- if self . count % 100 == 0 {
742
+ if !stm . parallel ( ) && self . count % 100 == 0 {
743
743
yield_now ! ( ) ;
744
744
}
745
745
// Process the result
Original file line number Diff line number Diff line change @@ -371,7 +371,6 @@ impl<'a> Statement<'a> {
371
371
}
372
372
373
373
/// Returns any PARALLEL clause if specified
374
- #[ cfg( not( target_arch = "wasm32" ) ) ]
375
374
pub ( crate ) fn parallel ( & self ) -> bool {
376
375
match self {
377
376
Statement :: Select ( v) => v. parallel ,
Original file line number Diff line number Diff line change @@ -272,14 +272,14 @@ mod test {
272
272
let Error :: Unreachable ( msg) = fail ! ( "Reached unreachable code" ) else {
273
273
panic ! ( )
274
274
} ;
275
- assert_eq ! ( "crates/core/src/mac/mod.rs:263 : Reached unreachable code" , msg) ;
275
+ assert_eq ! ( "crates/core/src/mac/mod.rs:272 : Reached unreachable code" , msg) ;
276
276
}
277
277
278
278
#[ test]
279
279
fn fail_arguments ( ) {
280
280
let Error :: Unreachable ( msg) = fail ! ( "Found {} but expected {}" , "test" , "other" ) else {
281
281
panic ! ( )
282
282
} ;
283
- assert_eq ! ( "crates/core/src/mac/mod.rs:271 : Found test but expected other" , msg) ;
283
+ assert_eq ! ( "crates/core/src/mac/mod.rs:280 : Found test but expected other" , msg) ;
284
284
}
285
285
}
You can’t perform that action at this time.
0 commit comments