Skip to content

Commit 04dbcbb

Browse files
Stjepan Glavinayoshuawuyts
Stjepan Glavina
andauthored
Update src/task/worker.rs
Co-Authored-By: Yoshua Wuyts <[email protected]>
1 parent 0924911 commit 04dbcbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/task/worker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ thread_local! {
7575
static QUEUE: Cell<Option<Worker<task::Runnable>>> = Cell::new(None);
7676
}
7777

78-
pub fn is_worker() -> bool {
78+
pub(crate) fn is_worker() -> bool {
7979
IS_WORKER.with(|is_worker| is_worker.get())
8080
}
8181

0 commit comments

Comments
 (0)