From e316640f682fa05d0b12168219a2dd8000fb4ec5 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Sun, 12 Aug 2018 08:20:08 +0300 Subject: [PATCH] TODO comment removal --- melib/src/mailbox/email/parser.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/melib/src/mailbox/email/parser.rs b/melib/src/mailbox/email/parser.rs index cd9c2ba7..b1eb4dd2 100644 --- a/melib/src/mailbox/email/parser.rs +++ b/melib/src/mailbox/email/parser.rs @@ -24,6 +24,7 @@ use data_encoding::BASE64_MIME; use encoding::{DecoderTrap, Encoding}; use nom::{is_hex_digit, le_u8}; use nom::{ErrorKind, IResult, Needed}; +use encoding::all::*; use std; macro_rules! is_whitespace { @@ -161,11 +162,6 @@ named!(pub attachment<(std::vec::Vec<(&[u8], &[u8])>, &[u8])>, /* Encoded words *"=?charset?encoding?encoded text?=". */ - -/* TODO: make a map of encodings and decoding functions so that they can be reused and easily - * extended */ -use encoding::all::*; - fn encoded_word(input: &[u8]) -> IResult<&[u8], Vec> { if input.len() < 5 { return IResult::Incomplete(Needed::Unknown);