Remove unused import warning when default_font feature is disabled (#10230)

# Objective

- Fixes:

```
warning: unused import: `Handle`
  --> crates/bevy_text/src/lib.rs:31:28
   |
31 | use bevy_asset::{AssetApp, Handle};
   |                            ^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default
```

## Solution

- Moved import to match feature.
This commit is contained in:
Al M 2023-10-23 05:24:00 -07:00 committed by GitHub
parent d938275b9c
commit b28525b772
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,9 +26,9 @@ pub mod prelude {
} }
use bevy_app::prelude::*; use bevy_app::prelude::*;
use bevy_asset::AssetApp;
#[cfg(feature = "default_font")] #[cfg(feature = "default_font")]
use bevy_asset::load_internal_binary_asset; use bevy_asset::{load_internal_binary_asset, Handle};
use bevy_asset::{AssetApp, Handle};
use bevy_ecs::prelude::*; use bevy_ecs::prelude::*;
use bevy_render::{camera::CameraUpdateSystem, ExtractSchedule, RenderApp}; use bevy_render::{camera::CameraUpdateSystem, ExtractSchedule, RenderApp};
use bevy_sprite::SpriteSystem; use bevy_sprite::SpriteSystem;