From 04dbcbb639eb522201951e200d3cf79cc00253cf Mon Sep 17 00:00:00 2001 From: Stjepan Glavina Date: Tue, 17 Sep 2019 12:28:19 +0100 Subject: [PATCH] Update src/task/worker.rs Co-Authored-By: Yoshua Wuyts --- src/task/worker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/task/worker.rs b/src/task/worker.rs index 71b93ead..fc2a6e7e 100644 --- a/src/task/worker.rs +++ b/src/task/worker.rs @@ -75,7 +75,7 @@ thread_local! { static QUEUE: Cell>> = Cell::new(None); } -pub fn is_worker() -> bool { +pub(crate) fn is_worker() -> bool { IS_WORKER.with(|is_worker| is_worker.get()) }