From f63c341f94c103c8fe8a825467ed8bfd810192f6 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 6 Apr 2026 19:33:18 -0400 Subject: [PATCH] fix unused imports --- src/agent/mod.rs | 1 - src/user/chat.rs | 7 ++----- src/user/context.rs | 2 +- src/user/mod.rs | 4 +--- src/user/subconscious.rs | 4 ++-- src/user/thalamus.rs | 4 ++-- src/user/unconscious.rs | 4 ++-- 7 files changed, 10 insertions(+), 16 deletions(-) diff --git a/src/agent/mod.rs b/src/agent/mod.rs index 7cf7c40..2fc9363 100644 --- a/src/agent/mod.rs +++ b/src/agent/mod.rs @@ -29,7 +29,6 @@ use tools::{summarize_args, working_stack}; use crate::mind::log::ConversationLog; use crate::agent::context::{ContextSection, SharedContextState}; -use crate::mind::StreamTarget; use crate::subconscious::learn; // --- Activity tracking (RAII guards) --- diff --git a/src/user/chat.rs b/src/user/chat.rs index 7c88bf1..67e8560 100644 --- a/src/user/chat.rs +++ b/src/user/chat.rs @@ -9,13 +9,10 @@ use ratatui::{ text::{Line, Span}, widgets::{Block, Borders, Paragraph, Wrap}, Frame, - crossterm::event::{KeyCode, KeyEvent, KeyModifiers, MouseEvent, MouseEventKind, MouseButton}, + crossterm::event::{KeyCode, KeyModifiers, MouseEvent, MouseEventKind, MouseButton}, }; -use super::{ - App, HotkeyAction, ScreenAction, ScreenView, - screen_legend, -}; +use super::{App, ScreenView, screen_legend}; use crate::mind::StreamTarget; use crate::mind::MindCommand; diff --git a/src/user/context.rs b/src/user/context.rs index 5e9890e..36dde52 100644 --- a/src/user/context.rs +++ b/src/user/context.rs @@ -9,7 +9,7 @@ use ratatui::{ text::Line, widgets::{Block, Borders, Paragraph, Wrap}, Frame, - crossterm::event::{KeyCode, KeyEvent}, + crossterm::event::KeyCode, }; use super::{App, ScreenView, screen_legend}; diff --git a/src/user/mod.rs b/src/user/mod.rs index b637e7d..05bd960 100644 --- a/src/user/mod.rs +++ b/src/user/mod.rs @@ -10,9 +10,7 @@ pub mod unconscious; pub mod thalamus; use anyhow::Result; -use ratatui::crossterm::event::{Event, KeyEventKind}; use std::io::Write; -use std::time::Duration; use crate::mind::MindCommand; use crate::user::{self as tui}; @@ -20,7 +18,7 @@ use crate::user::{self as tui}; // --- TUI infrastructure (moved from tui/mod.rs) --- use ratatui::crossterm::{ - event::{EnableMouseCapture, DisableMouseCapture, KeyCode, KeyEvent, KeyModifiers}, + event::{EnableMouseCapture, DisableMouseCapture}, terminal::{self, EnterAlternateScreen, LeaveAlternateScreen}, ExecutableCommand, }; diff --git a/src/user/subconscious.rs b/src/user/subconscious.rs index 85a0c24..43af16e 100644 --- a/src/user/subconscious.rs +++ b/src/user/subconscious.rs @@ -6,10 +6,10 @@ use ratatui::{ text::{Line, Span}, widgets::{Block, Borders, Paragraph, Wrap}, Frame, - crossterm::event::{KeyCode, KeyEvent}, + crossterm::event::KeyCode, }; -use super::{App, ScreenAction, ScreenView, screen_legend}; +use super::{App, ScreenView, screen_legend}; pub(crate) struct SubconsciousScreen { selected: usize, diff --git a/src/user/thalamus.rs b/src/user/thalamus.rs index 9d509ae..b4b3fbd 100644 --- a/src/user/thalamus.rs +++ b/src/user/thalamus.rs @@ -6,10 +6,10 @@ use ratatui::{ text::{Line, Span}, widgets::{Block, Borders, Paragraph, Wrap}, Frame, - crossterm::event::{KeyCode, KeyEvent}, + crossterm::event::KeyCode, }; -use super::{App, HotkeyAction, ScreenAction, ScreenView, screen_legend}; +use super::{App, ScreenView, screen_legend}; pub(crate) struct ThalamusScreen { sampling_selected: usize, diff --git a/src/user/unconscious.rs b/src/user/unconscious.rs index 3fa1bea..99876f8 100644 --- a/src/user/unconscious.rs +++ b/src/user/unconscious.rs @@ -6,10 +6,10 @@ use ratatui::{ text::{Line, Span}, widgets::{Block, Borders, Gauge, Paragraph, Wrap}, Frame, - crossterm::event::{KeyCode, KeyEvent}, + crossterm::event::KeyCode, }; -use super::{App, ScreenAction, ScreenView, screen_legend}; +use super::{App, ScreenView, screen_legend}; use crate::subconscious::daemon::GraphHealth; #[derive(serde::Deserialize, Default)]