chore: apply unreachable_pub and missing_debug_implementations to all crates (#1424)

This commit is contained in:
Taiki Endo
2019-08-11 04:28:52 +09:00
committed by GitHub
parent d9f9c5658f
commit 6a125082e4
49 changed files with 322 additions and 225 deletions
+2 -2
View File
@@ -8,14 +8,14 @@ pub(crate) struct Callback {
}
impl Callback {
pub fn new<F>(f: F) -> Self
pub(crate) fn new<F>(f: F) -> Self
where
F: Fn(&Worker) + Send + Sync + 'static,
{
Callback { f: Arc::new(f) }
}
pub fn call(&self, worker: &Worker) {
pub(crate) fn call(&self, worker: &Worker) {
(self.f)(worker)
}
}