Fix `unused` cargo warnings
parent
30b1808bdb
commit
1883bb46dd
|
@ -342,7 +342,7 @@ impl MailBackend for MaildirType {
|
||||||
eprintln!("saving at {}", path.display());
|
eprintln!("saving at {}", path.display());
|
||||||
let file = fs::File::create(path)?;
|
let file = fs::File::create(path)?;
|
||||||
let mut writer = io::BufWriter::new(file);
|
let mut writer = io::BufWriter::new(file);
|
||||||
writer.write(&message.into_bytes());
|
writer.write(&message.into_bytes())?;
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,10 +70,10 @@ const LIGHT_DOWN_AND_HORIZONTAL: char = '┬';
|
||||||
|
|
||||||
const LIGHT_UP_AND_HORIZONTAL: char = '┴';
|
const LIGHT_UP_AND_HORIZONTAL: char = '┴';
|
||||||
|
|
||||||
const DOUBLE_DOWN_AND_RIGHT: char = '╔';
|
const _DOUBLE_DOWN_AND_RIGHT: char = '╔';
|
||||||
const DOUBLE_DOWN_AND_LEFT: char = '╗';
|
const _DOUBLE_DOWN_AND_LEFT: char = '╗';
|
||||||
const DOUBLE_UP_AND_LEFT: char = '╝';
|
const _DOUBLE_UP_AND_LEFT: char = '╝';
|
||||||
const DOUBLE_UP_AND_RIGHT: char = '╚';
|
const _DOUBLE_UP_AND_RIGHT: char = '╚';
|
||||||
|
|
||||||
/// `Entity` is a container for Components.
|
/// `Entity` is a container for Components.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
|
|
@ -21,8 +21,6 @@
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
use melib::{AddressBook, Card};
|
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct ContactManager {
|
pub struct ContactManager {
|
||||||
content: CellBuffer,
|
content: CellBuffer,
|
||||||
|
|
|
@ -148,7 +148,7 @@ impl Component for AccountsPanel {
|
||||||
|
|
||||||
impl AccountsPanel {
|
impl AccountsPanel {
|
||||||
pub fn new(context: &Context) -> 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 {
|
AccountsPanel {
|
||||||
cursor: 0,
|
cursor: 0,
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
use super::*;
|
use super::*;
|
||||||
use linkify::{Link, LinkFinder};
|
use linkify::{Link, LinkFinder};
|
||||||
use std::process::{Command, Stdio};
|
use std::process::{Command, Stdio};
|
||||||
use std::any::Any;
|
|
||||||
|
|
||||||
mod html;
|
mod html;
|
||||||
pub use self::html::*;
|
pub use self::html::*;
|
||||||
|
|
Loading…
Reference in New Issue