diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-05-10 21:14:49 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-05-10 21:18:56 +0300 |
commit | eb701695f71d6e62f5f11b85d3b367494a23c48b (patch) | |
tree | 5b29ea6b93694e63e7f5e09430e1b2240d0e1bfb /melib/src/addressbook | |
parent | b5b9982d9eb8c17b72fcd5599b4999f760d6f570 (diff) |
Remove fnv crate
Diffstat (limited to 'melib/src/addressbook')
-rw-r--r-- | melib/src/addressbook/vcard.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/melib/src/addressbook/vcard.rs b/melib/src/addressbook/vcard.rs index ac06215c..7999dbfe 100644 --- a/melib/src/addressbook/vcard.rs +++ b/melib/src/addressbook/vcard.rs @@ -23,7 +23,7 @@ use super::*; use crate::error::{MeliError, Result}; use crate::parsec::{match_literal_anycase, one_or_more, peek, prefix, take_until, Parser}; -use fnv::FnvHashMap; +use std::collections::HashMap; use std::convert::TryInto; /* Supported vcard versions */ @@ -50,14 +50,14 @@ static FOOTER: &'static str = "END:VCARD\r\n"; #[derive(Debug)] pub struct VCard<T: VCardVersion>( - fnv::FnvHashMap<String, ContentLine>, + HashMap<String, ContentLine>, std::marker::PhantomData<*const T>, ); impl<V: VCardVersion> VCard<V> { pub fn new_v4() -> VCard<impl VCardVersion> { VCard( - FnvHashMap::default(), + HashMap::default(), std::marker::PhantomData::<*const VCardVersion4>, ) } @@ -78,7 +78,7 @@ impl CardDeserializer { &input[HEADER.len()..input.len() - FOOTER.len()] }; - let mut ret = FnvHashMap::default(); + let mut ret = HashMap::default(); enum Stage { Group, |