Skip to content

Commit eb64eef

Browse files
mockersfItsDoot
authored andcommitted
remove an unused import in release (bevyengine#5320)
# Objective - There is a warning when building in release: ``` warning: unused import: `Local` --> crates/bevy_render/src/extract_resource.rs:4:34 | 4 | use bevy_ecs::system::{Commands, Local, Res, ResMut, Resource}; | ^^^^^ | = note: `#[warn(unused_imports)]` on by default ``` - It's used https://github.com/bevyengine/bevy/blob/814f8d1635587ad26d9e1e6e08e7d63b4355f4d7/crates/bevy_render/src/extract_resource.rs#L45 - Fix it ## Solution - Gate the import
1 parent 3c4afc0 commit eb64eef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/bevy_render/src/extract_resource.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
use std::marker::PhantomData;
22

33
use bevy_app::{App, Plugin};
4-
use bevy_ecs::system::{Commands, Local, Res, ResMut, Resource};
4+
#[cfg(debug_assertions)]
5+
use bevy_ecs::system::Local;
6+
use bevy_ecs::system::{Commands, Res, ResMut, Resource};
57
pub use bevy_render_macros::ExtractResource;
68

79
use crate::{Extract, RenderApp, RenderStage};

0 commit comments

Comments
 (0)