From 8f363544ad2812e08384dbbc3e8ea6fea0fb138c Mon Sep 17 00:00:00 2001 From: MinerSebas Date: Tue, 9 Mar 2021 01:07:01 +0000 Subject: [PATCH] Reorder Imports in Examples (#1598) This only affected 2 Examples: * `generic_reflection`: For some reason, a `pub use` statement was used. This was removed, and alphabetically ordered. * `wireframe`: This example used the `bevy_internal` crate directly. Changed to use `bevy` instead. All other Example Imports are correct. One potential subjective change is the `removel_detection` example. Unlike all other Examples, it has its (first) explanatory comment before the Imports. --- examples/3d/wireframe.rs | 4 ++-- examples/reflection/generic_reflection.rs | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/3d/wireframe.rs b/examples/3d/wireframe.rs index 797ca0d312..cd91c6978b 100644 --- a/examples/3d/wireframe.rs +++ b/examples/3d/wireframe.rs @@ -1,5 +1,5 @@ -use bevy::prelude::*; -use bevy_internal::{ +use bevy::{ + prelude::*, render::wireframe::{Wireframe, WireframeConfig, WireframePlugin}, wgpu::{WgpuFeature, WgpuFeatures, WgpuOptions}, }; diff --git a/examples/reflection/generic_reflection.rs b/examples/reflection/generic_reflection.rs index 085e89e90e..bb91a61176 100644 --- a/examples/reflection/generic_reflection.rs +++ b/examples/reflection/generic_reflection.rs @@ -1,8 +1,6 @@ +use bevy::{prelude::*, reflect::TypeRegistry}; use std::any::TypeId; -pub use bevy::prelude::*; -use bevy::reflect::TypeRegistry; - /// You must manually register each instance of a generic type fn main() { App::build()