mirror of
https://git.meli.delivery/meli/meli
synced 2024-11-19 03:25:38 +00:00
Fix unused imports/code compiler warnings
This commit is contained in:
parent
b7175c2400
commit
1811fb51cb
@ -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>>>> {
|
||||||
|
@ -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") {
|
||||||
|
Loading…
Reference in New Issue
Block a user