From dc63e1f657eec972b3179db29d4dd7d5318adecd Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Wed, 22 Jan 2020 00:04:14 +0200 Subject: [PATCH] Minor changes --- melib/src/lib.rs | 1 - ui/src/state.rs | 1 - ui/src/types.rs | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/melib/src/lib.rs b/melib/src/lib.rs index 2b492105a..cb5a85570 100644 --- a/melib/src/lib.rs +++ b/melib/src/lib.rs @@ -194,7 +194,6 @@ pub mod shellexpand { fn complete(&self, force: bool) -> SmallVec<[String; 128]> { use libc::dirent64; use nix::fcntl::OFlag; - use std::ffi::CString; use std::ffi::OsStr; use std::os::unix::ffi::OsStrExt; use std::os::unix::io::AsRawFd; diff --git a/ui/src/state.rs b/ui/src/state.rs index 248b50a40..3436eb589 100644 --- a/ui/src/state.rs +++ b/ui/src/state.rs @@ -767,7 +767,6 @@ impl State { } } if ctr != self.context.accounts.len() { - debug!("unparking"); self.timer.thread().unpark(); } } diff --git a/ui/src/types.rs b/ui/src/types.rs index 1a5131190..bab1502db 100644 --- a/ui/src/types.rs +++ b/ui/src/types.rs @@ -253,6 +253,7 @@ pub struct RateLimit { pub active: bool, } +//FIXME: tests. impl RateLimit { pub fn new(reqs: u64, millis: u64) -> Self { RateLimit {