diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-03-14 12:19:25 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-06-10 19:40:39 +0300 |
commit | bf038428c2cc3da8eb348524be06ac612612d61c (patch) | |
tree | fe10fb1a8e959a862270d6cb4147e7f5525f0800 /melib/src/mailbox/email/parser.rs | |
parent | e7c95ba2297a9bd155760ee9adc14406401c6184 (diff) |
Run rustfmt
Diffstat (limited to 'melib/src/mailbox/email/parser.rs')
-rw-r--r-- | melib/src/mailbox/email/parser.rs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/melib/src/mailbox/email/parser.rs b/melib/src/mailbox/email/parser.rs index 5b0e0b75..a8d7ef34 100644 --- a/melib/src/mailbox/email/parser.rs +++ b/melib/src/mailbox/email/parser.rs @@ -135,16 +135,19 @@ named!( named!( header_no_val<(&[u8], &[u8])>, - do_parse!( - name: complete!(name) >> - tag!(b":") >> - opt!(is_a!(" \t")) >> - tag!(b"\n") >> - ( { (name, b"") } ))); + do_parse!( + name: complete!(name) + >> tag!(b":") + >> opt!(is_a!(" \t")) + >> tag!(b"\n") + >> ({ (name, b"") }) + ) +); named!( header<(&[u8], &[u8])>, - alt_complete!(header_no_val | header_has_val)); + alt_complete!(header_no_val | header_has_val) +); /* Parse all headers -> Vec<(&str, Vec<&str>)> */ named!(pub headers<std::vec::Vec<(&[u8], &[u8])>>, many1!(complete!(header))); |