Fix unused imports/code compiler warnings

async
Manos Pitsidianakis 2020-03-04 22:11:37 +02:00
parent b7175c2400
commit 1811fb51cb
Signed by: Manos Pitsidianakis
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 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."))
}
fn tags(&self) -> Option<Arc<RwLock<BTreeMap<u64, String>>>> {

View File

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