Organizing imports
parent
c653bad935
commit
c4a289bb59
16
src/app.rs
16
src/app.rs
|
@ -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;
|
||||||
|
|
||||||
|
|
10
src/main.rs
10
src/main.rs
|
@ -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};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue