melib: fix typo and unused val

embed
Manos Pitsidianakis 2019-05-03 23:53:13 +03:00
parent 1f2c0b4fa7
commit 59135be983
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 1 additions and 2 deletions

View File

@ -407,7 +407,6 @@ impl MailBackend for MaildirType {
impl MaildirType {
pub fn new(f: &AccountSettings) -> Self {
let name = f.name.clone();
let mut folders: FnvHashMap<FolderHash, MaildirFolder> = Default::default();
fn recurse_folders<P: AsRef<Path>>(
folders: &mut FnvHashMap<FolderHash, MaildirFolder>,
@ -590,7 +589,7 @@ impl MaildirType {
let result: result::Result<Envelope, _> = bincode::deserialize_from(reader);
if let Ok(env) = result {
let mut map = map.lock().unwrap();
let map = map.entry(folder_hash).or_default();;
let map = map.entry(folder_hash).or_default();
let hash = env.hash();
map.insert(hash, file.clone());
local_r.push(env);