diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-07-17 19:40:13 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-07-17 19:40:13 +0200 |
commit | 4f7ff55ba75e77bc71001c7c191832bbf1c5ce16 (patch) | |
tree | 28f997d436a890ead1e58503abd928529550ab79 | |
parent | bec7453295a2d37ac1d4dd6eebb6f273c460e39b (diff) |
Remove dead codeminor
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | melib/src/email/parser.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/melib/src/email/parser.rs b/melib/src/email/parser.rs index 0e9fe530..be4c1c5b 100644 --- a/melib/src/email/parser.rs +++ b/melib/src/email/parser.rs @@ -974,23 +974,6 @@ mod tests { fn test_attachments() { //FIXME: add file return; - /* - use std::io::Read; - let mut buffer: Vec<u8> = Vec::new(); - let _ = std::fs::File::open("").unwrap().read_to_end(&mut buffer); - let boundary = b"b1_4382d284f0c601a737bb32aaeda53160"; - let (_, body) = match mail(&buffer).to_full_result() { - Ok(v) => v, - Err(_) => panic!(), - }; - let attachments = attachments(body, boundary).to_full_result().unwrap(); - assert_eq!(attachments.len(), 4); - let v: Vec<&str> = attachments - .iter() - .map(|v| std::str::from_utf8(v).unwrap()) - .collect(); - println!("attachments {:?}", v); - */ } #[test] fn test_addresses() { |