Skip to content

Commit

Permalink
Update crossbeam-utils -> 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Nov 12, 2018
1 parent 42dbac1 commit 5bc8823
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions src/gpu_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -824,7 +824,7 @@ impl<'font> Cache<'font> {
}
}
}
});
}).unwrap();
} else {
// single thread rasterization
for (tex_coords, glyph) in draw_and_upload {
Expand Down

0 comments on commit 5bc8823

Please sign in to comment.