summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-12-23 12:48:22 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-23 13:37:03 +0100
commit413eae976306cd3ae868307d16e46837d1968c43 (patch)
tree2527de5bf9d8f607b1f560e9a0e404f11a46e9c4
parentbd984c314b2b50dcd5319516aa027da76841f67f (diff)
Make public for crate, so we can access fields in tests
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--parser/src/header.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser/src/header.rs b/parser/src/header.rs
index 26e81b1..2473a2e 100644
--- a/parser/src/header.rs
+++ b/parser/src/header.rs
@@ -11,8 +11,8 @@ use crate::error::*;
/// the data as Rust strings.
#[derive(Debug)]
pub struct MailHeader<'a> {
- key: &'a [u8],
- value: &'a [u8],
+ pub(crate) key: &'a [u8],
+ pub(crate) value: &'a [u8],
}
impl<'a> MailHeader<'a> {