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:
François 2022-07-14 23:43:57 +00:00
parent 814f8d1635
commit 44566dbab7

View file

@ -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};