From 7c547877a9d7379396ee30c2ebc3a74c5202bd56 Mon Sep 17 00:00:00 2001 From: Sarthak Singh Date: Sat, 11 Sep 2021 09:38:36 -0700 Subject: [PATCH] Switched to specific imports as prefered by the style guide --- crates/bevy_audio/src/audio_output.rs | 4 ++-- crates/bevy_winit/src/lib.rs | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/crates/bevy_audio/src/audio_output.rs b/crates/bevy_audio/src/audio_output.rs index 1edbdcd25d71c2..0677246c09cc6a 100644 --- a/crates/bevy_audio/src/audio_output.rs +++ b/crates/bevy_audio/src/audio_output.rs @@ -1,6 +1,6 @@ use crate::{Audio, AudioSource, Decodable}; use bevy_asset::{Asset, Assets}; -use bevy_ecs::prelude::*; +use bevy_ecs::system::{NonSend, Res, ResMut}; use bevy_reflect::TypeUuid; use bevy_utils::tracing::warn; use rodio::{OutputStream, OutputStreamHandle, Sink, Source}; @@ -81,7 +81,7 @@ where } } -/// Plays audio currently queued in the [Audio] resource through the [AudioOutput] resource +/// Plays audio currently queued in the [`Audio`] resource through the [`AudioOutput`] resource pub fn play_queued_audio_system( audio_output: NonSend>, audio_sources: Option>>, diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs index 6877b0c35ec4a0..8e9172cd3bfd0d 100644 --- a/crates/bevy_winit/src/lib.rs +++ b/crates/bevy_winit/src/lib.rs @@ -11,7 +11,12 @@ pub use winit_config::*; pub use winit_windows::*; use bevy_app::{App, AppExit, CoreStage, Events, ManualEventReader, Plugin}; -use bevy_ecs::prelude::*; +use bevy_ecs::{ + event::EventWriter, + schedule::ParallelSystemDescriptorCoercion, + system::{NonSend, ResMut}, + world::World, +}; use bevy_math::{ivec2, DVec2, Vec2}; use bevy_utils::tracing::{error, trace, warn}; use bevy_window::{