Skip to content

Commit cbaaa22

Browse files
committed
refactor: clean up unused imports in issue_19_demo.rs
Removes unused imports and variables to eliminate compiler warnings while maintaining full functionality of the state machine demo.
1 parent 37c7549 commit cbaaa22

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

examples/issue_19_demo.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
//! - Settings action handling with immediate theme application
99
1010
use agentic::{
11-
events::{AppEvent, AppState, EventHandler},
12-
settings::{Settings, SettingsAction, SettingsManager},
11+
events::{AppEvent, AppState},
12+
settings::SettingsAction,
1313
theme::{Theme, ThemeVariant},
1414
ui::app::App,
1515
};
16-
use std::time::Duration;
1716

1817
fn main() -> Result<(), Box<dyn std::error::Error>> {
1918
println!("🔄 Issue #19 Demo: App State Machine Extension for Settings");
@@ -46,14 +45,14 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
4645
println!("3. Testing event handling...");
4746

4847
// Simulate OpenSettings event
49-
let open_event = AppEvent::OpenSettings;
48+
let _open_event = AppEvent::OpenSettings;
5049
println!(" Handling OpenSettings event...");
5150
// Note: handle_event is private, but we can test the public methods
5251
app.enter_settings();
5352
println!(" State after OpenSettings: {:?}", app.state());
5453

5554
// Simulate CloseSettings event
56-
let close_event = AppEvent::CloseSettings;
55+
let _close_event = AppEvent::CloseSettings;
5756
println!(" Handling CloseSettings event...");
5857
app.exit_settings();
5958
println!(" State after CloseSettings: {:?}", app.state());

0 commit comments

Comments
 (0)