Update src/task/worker.rs

Co-Authored-By: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
Stjepan Glavina 2019-09-17 12:28:19 +01:00 committed by GitHub
parent 0924911ac3
commit 04dbcbb639
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ thread_local! {
static QUEUE: Cell<Option<Worker<task::Runnable>>> = Cell::new(None);
}
pub fn is_worker() -> bool {
pub(crate) fn is_worker() -> bool {
IS_WORKER.with(|is_worker| is_worker.get())
}