Skip to content

Commit 7be07d1

Browse files
committed
Remove unhelpful rayon scoping
1 parent afd3f03 commit 7be07d1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/worker/rayon.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@ pub struct Scoped {
3131
}
3232

3333
pub fn with_rayon<T>(f: impl FnOnce(&mut dyn Worker) -> T) -> T {
34-
rayon::in_place_scope(|_| {
35-
let inner = ImmediateWorker::default();
36-
f(&mut Scoped {
37-
inner: Mutex::new(inner),
38-
})
34+
let inner = ImmediateWorker::default();
35+
f(&mut Scoped {
36+
inner: Mutex::new(inner),
3937
})
4038
}
4139

0 commit comments

Comments
 (0)