Organizing imports

master
Wynd 2024-10-19 20:21:40 +03:00
parent c653bad935
commit c4a289bb59
2 changed files with 10 additions and 16 deletions

View File

@ -1,21 +1,19 @@
use std::time::{Duration, Instant}; use std::time::{Duration, Instant};
use color_eyre::{eyre::eyre, owo_colors::OwoColorize, Result}; use color_eyre::{owo_colors::OwoColorize, Result};
use gilrs::{Gamepad, Gilrs};
use ratatui::{ use ratatui::{
buffer::Buffer, buffer::Buffer,
crossterm::event::{self, Event, KeyCode, KeyEventKind}, crossterm::event::{self, KeyCode, KeyEventKind},
layout::{Alignment, Constraint, Flex, Layout, Rect}, layout::{Constraint, Layout, Rect},
style::{palette::tailwind, Color, Style, Stylize}, style::{Color, Style, Stylize},
symbols::Marker, symbols::Marker,
widgets::{ widgets::{
block::Position, canvas::{Canvas, Rectangle, Shape},
canvas::{Canvas, Circle, Rectangle, Shape}, Block, BorderType, Widget,
Block, BorderType, Gauge, Padding, Paragraph, Widget,
}, },
DefaultTerminal, DefaultTerminal,
}; };
use Constraint::{Fill, Length, Min, Percentage}; use Constraint::{Fill, Length, Percentage};
use crate::gamepad_manager::GamepadManager; use crate::gamepad_manager::GamepadManager;

View File

@ -1,11 +1,7 @@
use std::{ use std::fs::OpenOptions;
fs::{File, OpenOptions},
thread,
time::Duration,
};
use app::{App, AppState}; use app::App;
use color_eyre::{eyre::eyre, Result}; use color_eyre::Result;
use gamepad_manager::GamepadManager; use gamepad_manager::GamepadManager;
use tracing_subscriber::{layer::SubscriberExt, Layer}; use tracing_subscriber::{layer::SubscriberExt, Layer};