Fix `unused` cargo warnings

master
Manos Pitsidianakis 2019-02-17 12:08:35 +02:00
parent 30b1808bdb
commit 1883bb46dd
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
5 changed files with 6 additions and 9 deletions

View File

@ -342,7 +342,7 @@ impl MailBackend for MaildirType {
eprintln!("saving at {}", path.display());
let file = fs::File::create(path)?;
let mut writer = io::BufWriter::new(file);
writer.write(&message.into_bytes());
writer.write(&message.into_bytes())?;
return Ok(());
}
}

View File

@ -70,10 +70,10 @@ const LIGHT_DOWN_AND_HORIZONTAL: char = '┬';
const LIGHT_UP_AND_HORIZONTAL: char = '┴';
const DOUBLE_DOWN_AND_RIGHT: char = '╔';
const DOUBLE_DOWN_AND_LEFT: char = '╗';
const DOUBLE_UP_AND_LEFT: char = '╝';
const DOUBLE_UP_AND_RIGHT: char = '╚';
const _DOUBLE_DOWN_AND_RIGHT: char = '╔';
const _DOUBLE_DOWN_AND_LEFT: char = '╗';
const _DOUBLE_UP_AND_LEFT: char = '╝';
const _DOUBLE_UP_AND_RIGHT: char = '╚';
/// `Entity` is a container for Components.
#[derive(Debug)]

View File

@ -21,8 +21,6 @@
use super::*;
use melib::{AddressBook, Card};
#[derive(Debug)]
pub struct ContactManager {
content: CellBuffer,

View File

@ -148,7 +148,7 @@ impl Component for AccountsPanel {
impl AccountsPanel {
pub fn new(context: &Context) -> AccountsPanel {
let mut content = CellBuffer::new(120, 25 + context.accounts.len() * 20, Cell::default());
let content = CellBuffer::new(120, 25 + context.accounts.len() * 20, Cell::default());
AccountsPanel {
cursor: 0,

View File

@ -22,7 +22,6 @@
use super::*;
use linkify::{Link, LinkFinder};
use std::process::{Command, Stdio};
use std::any::Any;
mod html;
pub use self::html::*;