From 7ed39c5bdce921f84c743ce2d350f56b35ee38c4 Mon Sep 17 00:00:00 2001 From: Charlotte McElwain Date: Mon, 9 Sep 2024 14:07:44 -0700 Subject: [PATCH] Fix prelude. --- examples/wgpu/wgpu_compute_shader/wgpu_compute_shader.rs | 1 - nannou/src/prelude.rs | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/wgpu/wgpu_compute_shader/wgpu_compute_shader.rs b/examples/wgpu/wgpu_compute_shader/wgpu_compute_shader.rs index 7b743f3ba..af26ced8f 100644 --- a/examples/wgpu/wgpu_compute_shader/wgpu_compute_shader.rs +++ b/examples/wgpu/wgpu_compute_shader/wgpu_compute_shader.rs @@ -5,7 +5,6 @@ //! with a gray value equal to the amplitude. Real-time interaction is demonstrated by providing //! access to time, frequency (mouse `x`) and the number of oscillators via uniform data. -use nannou::prelude::futures_lite::future; use nannou::prelude::*; use nannou::wgpu::BufferInitDescriptor; use std::sync::{Arc, Mutex}; diff --git a/nannou/src/prelude.rs b/nannou/src/prelude.rs index eb1cbb465..dde52ec0f 100644 --- a/nannou/src/prelude.rs +++ b/nannou/src/prelude.rs @@ -4,7 +4,9 @@ pub use bevy::asset as bevy_asset; pub use bevy::ecs as bevy_ecs; pub use bevy::reflect as bevy_reflect; pub use bevy::render as bevy_render; -pub use bevy::tasks::prelude::*; +pub use bevy::tasks::{Task, futures_lite::future}; +pub use bevy::tasks::prelude::{block_on, AsyncComputeTaskPool, IoTaskPool}; + #[cfg(feature = "egui")] pub use bevy_egui::egui;