clippy: Fix new_ret_no_self

This commit is contained in:
Alan Du 2018-10-16 13:31:16 -04:00
parent 2268a2f8c6
commit 2ae9dfa812
7 changed files with 17 additions and 17 deletions

View file

@ -355,7 +355,7 @@ impl<'a> PoolDispatcher<'a> {
};
match req.cast::<R>() {
Ok((id, params)) => {
let (handle, token) = JobHandle::new();
let (handle, token) = JobHandle::new_pair();
let world = self.world.snapshot();
let sender = self.sender.clone();
self.pool.spawn(move || {