diff --git a/src/appender.rs b/src/appender.rs index e5b5b59..5c594ae 100644 --- a/src/appender.rs +++ b/src/appender.rs @@ -1,8 +1,7 @@ use crate::appender::Command::CommandRecord; use crossbeam_utils::sync::WaitGroup; use log::LevelFilter; -use std::ops::{Add, Sub}; -use std::time::{Duration, SystemTime}; +use std::time::{SystemTime}; /// LogAppender append logs /// Appender will be running on single main thread,please do_log for new thread or new an Future diff --git a/src/fast_log.rs b/src/fast_log.rs index d159d6b..3e05f17 100644 --- a/src/fast_log.rs +++ b/src/fast_log.rs @@ -1,8 +1,8 @@ use log::{LevelFilter, Log, Metadata, Record}; -use std::ops::{Deref, DerefMut}; +use std::ops::{Deref}; use std::sync::atomic::{AtomicI32, AtomicI64, Ordering}; -use crate::appender::{Command, FastLogRecord, RecordFormat}; +use crate::appender::{Command, FastLogRecord}; use crate::config::Config; use crate::error::LogError; use crate::filter::Filter; diff --git a/src/plugin/file_split.rs b/src/plugin/file_split.rs index 0531d4f..2515835 100644 --- a/src/plugin/file_split.rs +++ b/src/plugin/file_split.rs @@ -6,7 +6,6 @@ use crate::appender::{Command, FastLogRecord, LogAppender}; use crate::consts::LogSize; use crate::error::LogError; use crate::{chan, Receiver, Sender}; -use std::ops::Sub; use std::str::FromStr; use std::time::Duration;