mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
remove an unused import in release (#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 814f8d1635/crates/bevy_render/src/extract_resource.rs (L45)
- Fix it
## Solution
- Gate the import
This commit is contained in:
parent
814f8d1635
commit
44566dbab7
1 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,9 @@
|
|||
use std::marker::PhantomData;
|
||||
|
||||
use bevy_app::{App, Plugin};
|
||||
use bevy_ecs::system::{Commands, Local, Res, ResMut, Resource};
|
||||
#[cfg(debug_assertions)]
|
||||
use bevy_ecs::system::Local;
|
||||
use bevy_ecs::system::{Commands, Res, ResMut, Resource};
|
||||
pub use bevy_render_macros::ExtractResource;
|
||||
|
||||
use crate::{Extract, RenderApp, RenderStage};
|
||||
|
|
Loading…
Reference in a new issue