Skip to content

Commit 8f36354

Browse files
committed
Reorder Imports in Examples (bevyengine#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.
1 parent 9d60563 commit 8f36354

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

examples/3d/wireframe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use bevy::prelude::*;
2-
use bevy_internal::{
1+
use bevy::{
2+
prelude::*,
33
render::wireframe::{Wireframe, WireframeConfig, WireframePlugin},
44
wgpu::{WgpuFeature, WgpuFeatures, WgpuOptions},
55
};

examples/reflection/generic_reflection.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
use bevy::{prelude::*, reflect::TypeRegistry};
12
use std::any::TypeId;
23

3-
pub use bevy::prelude::*;
4-
use bevy::reflect::TypeRegistry;
5-
64
/// You must manually register each instance of a generic type
75
fn main() {
86
App::build()

0 commit comments

Comments
 (0)