diff --git a/src/app.rs b/src/app.rs index 24dc777..55bce16 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1,21 +1,19 @@ use std::time::{Duration, Instant}; -use color_eyre::{eyre::eyre, owo_colors::OwoColorize, Result}; -use gilrs::{Gamepad, Gilrs}; +use color_eyre::{owo_colors::OwoColorize, Result}; use ratatui::{ buffer::Buffer, - crossterm::event::{self, Event, KeyCode, KeyEventKind}, - layout::{Alignment, Constraint, Flex, Layout, Rect}, - style::{palette::tailwind, Color, Style, Stylize}, + crossterm::event::{self, KeyCode, KeyEventKind}, + layout::{Constraint, Layout, Rect}, + style::{Color, Style, Stylize}, symbols::Marker, widgets::{ - block::Position, - canvas::{Canvas, Circle, Rectangle, Shape}, - Block, BorderType, Gauge, Padding, Paragraph, Widget, + canvas::{Canvas, Rectangle, Shape}, + Block, BorderType, Widget, }, DefaultTerminal, }; -use Constraint::{Fill, Length, Min, Percentage}; +use Constraint::{Fill, Length, Percentage}; use crate::gamepad_manager::GamepadManager; diff --git a/src/main.rs b/src/main.rs index 594e620..8c2d55f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,11 +1,7 @@ -use std::{ - fs::{File, OpenOptions}, - thread, - time::Duration, -}; +use std::fs::OpenOptions; -use app::{App, AppState}; -use color_eyre::{eyre::eyre, Result}; +use app::App; +use color_eyre::Result; use gamepad_manager::GamepadManager; use tracing_subscriber::{layer::SubscriberExt, Layer};