From b28525b772ef076fb7a93ac9e0fd4a1acd58ea82 Mon Sep 17 00:00:00 2001 From: Al M Date: Mon, 23 Oct 2023 05:24:00 -0700 Subject: [PATCH] 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. --- crates/bevy_text/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_text/src/lib.rs b/crates/bevy_text/src/lib.rs index f5498d26ef..024dc663f7 100644 --- a/crates/bevy_text/src/lib.rs +++ b/crates/bevy_text/src/lib.rs @@ -26,9 +26,9 @@ pub mod prelude { } use bevy_app::prelude::*; +use bevy_asset::AssetApp; #[cfg(feature = "default_font")] -use bevy_asset::load_internal_binary_asset; -use bevy_asset::{AssetApp, Handle}; +use bevy_asset::{load_internal_binary_asset, Handle}; use bevy_ecs::prelude::*; use bevy_render::{camera::CameraUpdateSystem, ExtractSchedule, RenderApp}; use bevy_sprite::SpriteSystem;