Fix unused imports/code compiler warnings

This commit is contained in:
Manos Pitsidianakis 2020-03-04 22:11:37 +02:00
parent b7175c2400
commit 1811fb51cb
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710
2 changed files with 2 additions and 5 deletions

View File

@ -287,7 +287,7 @@ pub trait MailBackend: ::std::fmt::Debug + Send + Sync {
fn operation(&self, hash: EnvelopeHash) -> Box<dyn BackendOp>; fn operation(&self, hash: EnvelopeHash) -> Box<dyn BackendOp>;
fn save(&self, bytes: &[u8], mailbox: &str, flags: Option<Flag>) -> Result<()>; fn save(&self, bytes: &[u8], mailbox: &str, flags: Option<Flag>) -> Result<()>;
fn delete(&self, env_hash: EnvelopeHash) -> Result<()> { fn delete(&self, _env_hash: EnvelopeHash) -> Result<()> {
Err(MeliError::new("Unimplemented.")) Err(MeliError::new("Unimplemented."))
} }
fn tags(&self) -> Option<Arc<RwLock<BTreeMap<u64, String>>>> { fn tags(&self) -> Option<Arc<RwLock<BTreeMap<u64, String>>>> {

View File

@ -23,9 +23,7 @@
extern crate melib; extern crate melib;
use melib::*; use melib::*;
use std::alloc::System;
use std::collections::VecDeque; use std::collections::VecDeque;
use std::path::{Path, PathBuf};
extern crate notify_rust; extern crate notify_rust;
extern crate xdg_utils; extern crate xdg_utils;
#[macro_use] #[macro_use]
@ -43,7 +41,6 @@ extern crate serde_json;
extern crate smallvec; extern crate smallvec;
use melib::backends::imap::managesieve::new_managesieve_connection; use melib::backends::imap::managesieve::new_managesieve_connection;
use melib::AccountSettings;
use melib::Result; use melib::Result;
mod unix; mod unix;
@ -126,7 +123,7 @@ fn main() -> Result<()> {
use std::io::Write; use std::io::Write;
input.clear(); input.clear();
print!("> "); print!("> ");
io::stdout().flush(); io::stdout().flush().unwrap();
match io::stdin().read_line(&mut input) { match io::stdin().read_line(&mut input) {
Ok(_) => { Ok(_) => {
if input.trim().eq_ignore_ascii_case("logout") { if input.trim().eq_ignore_ascii_case("logout") {