Skip to content

Commit 228dbf7

Browse files
committed
Added lifetime bound.
1 parent bfc072f commit 228dbf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rayon-core/src/job.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl JobRef {
6464
/// executes it need not free any heap data, the cleanup occurs when
6565
/// the stack frame is later popped. The function parameter indicates
6666
/// `true` if the job was stolen -- executed on a different thread.
67-
pub(super) struct StackJob<'a, L, F, R>
67+
pub(super) struct StackJob<'a, L: 'a, F, R>
6868
where
6969
L: Latch + Sync,
7070
F: FnOnce(bool) -> R + Send,

0 commit comments

Comments
 (0)