From d51911be9142d804cbcff7bb367a8c7db4729e0b Mon Sep 17 00:00:00 2001 From: Lucas Farias Date: Sat, 21 Jun 2025 16:25:47 -0300 Subject: [PATCH] Warnings --- examples/usage/control_flow/selection_menu.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/usage/control_flow/selection_menu.rs b/examples/usage/control_flow/selection_menu.rs index b31dbaec33..43c29c569e 100644 --- a/examples/usage/control_flow/selection_menu.rs +++ b/examples/usage/control_flow/selection_menu.rs @@ -42,8 +42,7 @@ use bevy::{ time::Time, transform::components::Transform, ui::{ - widget::ImageNode, BackgroundColor, Display, FlexDirection, Node, PositionType, UiRect, - Val, ZIndex, + widget::ImageNode, BackgroundColor, FlexDirection, Node, PositionType, UiRect, Val, ZIndex, }, DefaultPlugins, }; @@ -105,6 +104,7 @@ enum GameState { enum SelectionMenu { #[default] Single, + #[expect(dead_code, reason = "TODO")] Stacked, } @@ -154,6 +154,7 @@ struct Item { /// Unique item id #[derive(Debug, Clone, Component)] +#[expect(dead_code, reason = "Will be used on sorting later")] struct ItemId(u8); /// The category that the item belongs to @@ -227,7 +228,7 @@ mod single { state::{ app::AppExtStates, condition::in_state, - state::{ComputedStates, OnEnter, OnExit, States}, + state::{ComputedStates, OnEnter, OnExit}, }, text::{TextColor, TextFont}, time::Time,