From f5753b0be0bbc99db5be81e8fa7aba137fb4c41f Mon Sep 17 00:00:00 2001 From: Xithrius Date: Mon, 23 Aug 2021 17:13:33 -0700 Subject: [PATCH] Finalized pre-commit config, sorted imports. --- .pre-commit-config.yaml | 3 +-- src/utils/app.rs | 1 - src/utils/event.rs | 16 +++++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e86fbc3..f2c9865 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,5 @@ repos: - repo: https://github.com/doublify/pre-commit-rust - rev: master + rev: v1.0 hooks: - id: fmt - args: [ '--verbose' ] diff --git a/src/utils/app.rs b/src/utils/app.rs index 82eb348..65d3136 100644 --- a/src/utils/app.rs +++ b/src/utils/app.rs @@ -1,6 +1,5 @@ use chrono::Utc; -#[derive(Debug, Clone)] pub struct App { /// Current value of the input box pub input: String, diff --git a/src/utils/event.rs b/src/utils/event.rs index 2f4d8c3..4197cf2 100644 --- a/src/utils/event.rs +++ b/src/utils/event.rs @@ -1,11 +1,13 @@ -use std::io; -use std::sync::{ - Arc, - atomic::{AtomicBool, Ordering}, +use std::{ + io, + sync::mpsc, + sync::{ + atomic::{AtomicBool, Ordering}, + Arc, + }, + thread, + time::Duration, }; -use std::sync::mpsc; -use std::thread; -use std::time::Duration; use termion::event::Key; use termion::input::TermRead;