Skip to content

Commit aa3dd14

Browse files
committed
gate an import used only for a debug assert (#7165)
# Objective - There is a warning when building in release: ``` warning: unused import: `bevy_ecs::system::Local` --> crates/bevy_render/src/extract_resource.rs:5:5 | 5 | use bevy_ecs::system::Local; | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default ``` - It's used https://github.com/bevyengine/bevy/blob/59751d6e33d94eff6e1fc20c9ae155974b3860b1/crates/bevy_render/src/extract_resource.rs#L47 - Fix it ## Solution - Gate the import - repeat of #5320
1 parent 59751d6 commit aa3dd14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/bevy_render/src/extract_resource.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use std::marker::PhantomData;
22

33
use bevy_app::{App, Plugin};
44
use bevy_ecs::change_detection::DetectChanges;
5+
#[cfg(debug_assertions)]
56
use bevy_ecs::system::Local;
67
use bevy_ecs::system::{Commands, Res, ResMut, Resource};
78
pub use bevy_render_macros::ExtractResource;

0 commit comments

Comments
 (0)