diff options
author | Katharina Fey <kookie@spacekookie.de> | 2020-01-10 16:37:40 +0000 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2020-01-10 16:37:40 +0000 |
commit | ee6ae3c379f6f3c03436532b5c446d40928e298f (patch) | |
tree | 652f0b53e831c8382545975992a621dc18e08877 | |
parent | 8a261eba202ec581a4af07690bc5b17ee36b869f (diff) |
Cleaning up libgitmail project tree
-rw-r--r-- | libgitmail/Cargo.toml | 2 | ||||
-rw-r--r-- | libgitmail/src/patch/mod.rs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libgitmail/Cargo.toml b/libgitmail/Cargo.toml index c823723..b053bcc 100644 --- a/libgitmail/Cargo.toml +++ b/libgitmail/Cargo.toml @@ -9,4 +9,6 @@ license = "GPL-3.0" [dependencies] mailparse = "0.10" nom = "5.0" + +[dev-dependencies] quickcheck = "0.9"
\ No newline at end of file diff --git a/libgitmail/src/patch/mod.rs b/libgitmail/src/patch/mod.rs index b4b09a4..ea31a0c 100644 --- a/libgitmail/src/patch/mod.rs +++ b/libgitmail/src/patch/mod.rs @@ -53,6 +53,8 @@ pub struct Patch<'mail> { } impl<'mail> Patch<'mail> { + + /// Hidden function that should only be used #[doc(hidden)] pub fn preprocess(raw: &'mail str) -> HeaderMap { let mail = mailparse::parse_mail(raw.as_bytes()) |