Skip to content

Commit

Permalink
Reorder Imports in Examples (bevyengine#1598)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MinerSebas committed Mar 9, 2021
1 parent 9d60563 commit 8f36354
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/3d/wireframe.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bevy::prelude::*;
use bevy_internal::{
use bevy::{
prelude::*,
render::wireframe::{Wireframe, WireframeConfig, WireframePlugin},
wgpu::{WgpuFeature, WgpuFeatures, WgpuOptions},
};
Expand Down
4 changes: 1 addition & 3 deletions examples/reflection/generic_reflection.rs
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit 8f36354

Please sign in to comment.