diff --git a/melib/src/backends.rs b/melib/src/backends.rs index 97e969f42..cc913b8e9 100644 --- a/melib/src/backends.rs +++ b/melib/src/backends.rs @@ -287,7 +287,7 @@ pub trait MailBackend: ::std::fmt::Debug + Send + Sync { fn operation(&self, hash: EnvelopeHash) -> Box; fn save(&self, bytes: &[u8], mailbox: &str, flags: Option) -> Result<()>; - fn delete(&self, env_hash: EnvelopeHash) -> Result<()> { + fn delete(&self, _env_hash: EnvelopeHash) -> Result<()> { Err(MeliError::new("Unimplemented.")) } fn tags(&self) -> Option>>> { diff --git a/src/managesieve.rs b/src/managesieve.rs index 5e2f9a5b0..6a647b036 100644 --- a/src/managesieve.rs +++ b/src/managesieve.rs @@ -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") {