From 4112b6d434b507adac1ae9daf2d22a635bf0bea0 Mon Sep 17 00:00:00 2001 From: rascul Date: Thu, 21 Jul 2022 17:58:00 -0500 Subject: [PATCH] add use statements for 2021 edition --- src/app.rs | 2 ++ src/apps.rs | 2 ++ src/main.rs | 17 ++--------------- src/proc.rs | 1 + src/run.rs | 1 + 5 files changed, 8 insertions(+), 15 deletions(-) diff --git a/src/app.rs b/src/app.rs index 059126c..1bbeb5a 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1,6 +1,8 @@ use std::process::{Command, ExitStatus}; use colored::Colorize; +use log::info; +use serde_derive::Deserialize; use crate::result::Result; diff --git a/src/apps.rs b/src/apps.rs index b4c43fa..d312e71 100644 --- a/src/apps.rs +++ b/src/apps.rs @@ -4,7 +4,9 @@ use std::io::Read; use std::path::PathBuf; use colored::Colorize; +use log::error; use mio::{Poll, PollOpt, Ready}; +use serde_derive::Deserialize; use crate::app::App; use crate::proc::Proc; diff --git a/src/main.rs b/src/main.rs index 9b49f29..4a8b591 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,18 +1,3 @@ -extern crate chrono; -extern crate colored; -extern crate dirs; -extern crate fern; -extern crate getopts; -#[macro_use] -extern crate log; -extern crate mio; -extern crate mio_child_process; -extern crate serde; -#[macro_use] -extern crate serde_derive; -extern crate signal_hook; -extern crate toml; - mod app; mod apps; mod config; @@ -23,6 +8,8 @@ mod run; use std::path::PathBuf; +use log::{info, error}; + use apps::Apps; use config::Config; use proc::Proc; diff --git a/src/proc.rs b/src/proc.rs index 61143d4..d9079a5 100644 --- a/src/proc.rs +++ b/src/proc.rs @@ -2,6 +2,7 @@ use std::convert::TryInto; use std::process::{Command, Stdio}; use colored::Colorize; +use log::info; use mio::Token; use mio_child_process::{CommandAsync, Process}; diff --git a/src/run.rs b/src/run.rs index 9fcb96a..15022b0 100644 --- a/src/run.rs +++ b/src/run.rs @@ -2,6 +2,7 @@ use std::boxed::Box; use std::sync::mpsc::TryRecvError; use colored::Colorize; +use log::{info, error}; use mio::{Events, Poll, PollOpt, Ready, Token}; use mio_child_process::{ProcessEvent, StdioChannel};