generated from PlexSheep/rs-base
chore: clippy stuff
This commit is contained in:
parent
6512cad419
commit
7ab1e71170
|
@ -10,6 +10,7 @@ readme = "README.md"
|
|||
homepage = "https://git.cscherr.de/PlexSheep/crock"
|
||||
repository = "https://git.cscherr.de/PlexSheep/crock"
|
||||
keywords = ["time", "clock", "tui"]
|
||||
categories = ["date-and-time"]
|
||||
|
||||
|
||||
[dependencies]
|
||||
|
|
21
src/main.rs
21
src/main.rs
|
@ -1,24 +1,23 @@
|
|||
#![warn(clippy::pedantic, clippy::style, clippy::nursery)]
|
||||
#![allow(clippy::question_mark_used)]
|
||||
|
||||
use chrono::SubsecRound;
|
||||
use ratatui::{
|
||||
backend::CrosstermBackend,
|
||||
crossterm::event::poll,
|
||||
layout::{Constraint, Direction, Layout, Rect},
|
||||
style::Style,
|
||||
widgets::{Block, Borders, Paragraph},
|
||||
Terminal,
|
||||
use ratatui::crossterm::event::{
|
||||
self, poll, DisableMouseCapture, EnableMouseCapture, Event, KeyCode, KeyModifiers,
|
||||
};
|
||||
use ratatui::{
|
||||
backend::CrosstermBackend,
|
||||
crossterm::{
|
||||
event::{self, DisableMouseCapture, EnableMouseCapture, Event, KeyCode, KeyModifiers},
|
||||
execute,
|
||||
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
|
||||
},
|
||||
style::Stylize,
|
||||
layout::{Constraint, Direction, Layout, Rect},
|
||||
style::{Style, Stylize},
|
||||
widgets::Paragraph,
|
||||
Terminal,
|
||||
};
|
||||
use std::{io, time::Duration};
|
||||
|
||||
const TITLE: &str = "Crock";
|
||||
|
||||
fn main() -> Result<(), io::Error> {
|
||||
// setup terminal
|
||||
enable_raw_mode()?;
|
||||
|
|
Reference in New Issue