diff --git a/Cargo.toml b/Cargo.toml index 0b50182..3bb088f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ license = "MIT" [dependencies] variance = "0.1" -crossbeam = "0.2" +crossbeam = "0.4" scopeguard = "0.1" [dev-dependencies] diff --git a/src/lib.rs b/src/lib.rs index 778c96b..a0fdfff 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,7 +13,7 @@ extern crate crossbeam; extern crate scopeguard; use variance::InvariantLifetime as Id; -use crossbeam::sync::MsQueue; +use crossbeam::queue::MsQueue; use std::{thread, mem}; use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering}; @@ -322,7 +322,7 @@ impl<'scope> Scope<'scope> { pub fn zoom<'smaller, F, R>(&self, scheduler: F) -> R where F: FnOnce(&Scope<'smaller>) -> R, 'scope: 'smaller { - let scope = unsafe { self.refine::<'smaller>() }; + let scope = unsafe { self.refine() }; // Join the scope either on completion of the scheduler or panic. defer!(scope.join());