Update crossbeam-utils -> 0.6

parent 42dbac18
Pipeline #1711 passed with stages
in 7 minutes and 59 seconds
......@@ -33,7 +33,7 @@ approx = { version = "0.3", default-features = false }
linked-hash-map = { version = "0.5", optional = true }
rustc-hash = { version = "1", optional = true }
crossbeam-deque = { version = "0.6", optional = true }
crossbeam-utils = { version = "0.5", optional = true }
crossbeam-utils = { version = "0.6", optional = true }
num_cpus = { version = "1.0", optional = true }
[dev-dependencies]
......
......@@ -790,7 +790,7 @@ impl<'font> Cache<'font> {
for _ in 0..num_cpus::get().min(glyph_count).saturating_sub(1) {
let stealer = stealer.clone();
let to_main = to_main.clone();
scope.spawn(move || loop {
scope.spawn(move |_| loop {
match stealer.steal() {
Steal::Data((tex_coords, glyph)) => {
let pixels = draw_glyph(tex_coords, glyph, pad_glyphs);
......@@ -824,7 +824,7 @@ impl<'font> Cache<'font> {
}
}
}
});
}).unwrap();
} else {
// single thread rasterization
for (tex_coords, glyph) in draw_and_upload {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment