summaryrefslogtreecommitdiffstats
path: root/src/mailcap.rs
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2020-05-10 21:14:49 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2020-05-10 21:18:56 +0300
commiteb701695f71d6e62f5f11b85d3b367494a23c48b (patch)
tree5b29ea6b93694e63e7f5e09430e1b2240d0e1bfb /src/mailcap.rs
parentb5b9982d9eb8c17b72fcd5599b4999f760d6f570 (diff)
Remove fnv crate
Diffstat (limited to 'src/mailcap.rs')
-rw-r--r--src/mailcap.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailcap.rs b/src/mailcap.rs
index b88c660c..5bcd92d2 100644
--- a/src/mailcap.rs
+++ b/src/mailcap.rs
@@ -24,10 +24,10 @@
use crate::split_command;
use crate::state::Context;
use crate::types::{create_temp_file, ForkType, UIEvent};
-use fnv::FnvHashMap;
use melib::attachments::decode;
use melib::text_processing::GlobMatch;
use melib::{email::Attachment, MeliError, Result};
+use std::collections::HashMap;
use std::io::Read;
use std::io::Write;
use std::path::PathBuf;
@@ -72,7 +72,7 @@ impl MailcapEntry {
}
}
- let mut hash_map = FnvHashMap::default();
+ let mut hash_map = HashMap::new();
let mut content = String::new();
std::fs::File::open(mailcap_path.as_path())?.read_to_string(&mut content)?;