From e135d8d824535cf6ce9352c7ea9c160fff3ffa5e 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 | 2 +- crates/bevy_gilrs/src/gilrs_system.rs | 2 +- crates/bevy_winit/src/lib.rs | 7 ++++++- 3 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 8daf2dc88e11bb..66cee0ab61a252 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_utils::tracing::warn; use rodio::{OutputStream, OutputStreamHandle, Sink}; use std::marker::PhantomData; diff --git a/crates/bevy_gilrs/src/gilrs_system.rs b/crates/bevy_gilrs/src/gilrs_system.rs index 2ccad15b031e42..4dd22cae6f3d2b 100644 --- a/crates/bevy_gilrs/src/gilrs_system.rs +++ b/crates/bevy_gilrs/src/gilrs_system.rs @@ -1,6 +1,6 @@ use crate::converter::{convert_axis, convert_button, convert_gamepad_id}; use bevy_app::{EventWriter, Events}; -use bevy_ecs::prelude::*; +use bevy_ecs::system::{NonSend, NonSendMut, ResMut}; use bevy_input::{gamepad::GamepadEventRaw, prelude::*}; use gilrs::{EventType, Gilrs}; diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs index 58403305b26c76..00dfc4238f1f9d 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::{Res, ResMut}, + world::World, +}; use bevy_math::{ivec2, Vec2}; use bevy_utils::tracing::{error, trace, warn}; use bevy_window::{