Switch to using block_on directly from futures-executor instead of the umbrella crate

This commit is contained in:
Imbris 2021-06-03 14:28:28 -04:00
parent f3cb08170c
commit 6ffdad173d
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View File

@ -6030,7 +6030,7 @@ dependencies = [
"dot_vox",
"enum-iterator",
"euc",
"futures",
"futures-executor",
"gilrs",
"glyph_brush",
"guillotiere",

View File

@ -85,7 +85,7 @@ crossbeam-channel = "0.5"
directories-next = "2.0"
dot_vox = "4.0"
enum-iterator = "0.6"
futures = "0.3"
futures-executor = "0.3"
guillotiere = "0.6"
hashbrown = {version = "0.9", features = ["rayon", "serde", "nightly"]}
image = {version = "0.23.12", default-features = false, features = ["ico", "png"]}

View File

@ -176,7 +176,7 @@ impl Renderer {
#[allow(unsafe_code)]
let surface = unsafe { instance.create_surface(window) };
let adapter = futures::executor::block_on(instance.request_adapter(
let adapter = futures_executor::block_on(instance.request_adapter(
&wgpu::RequestAdapterOptionsBase {
power_preference: wgpu::PowerPreference::HighPerformance,
compatible_surface: Some(&surface),
@ -189,7 +189,7 @@ impl Renderer {
..Default::default()
};
let (device, queue) = futures::executor::block_on(
let (device, queue) = futures_executor::block_on(
adapter.request_device(
&wgpu::DeviceDescriptor {
// TODO