From ee6ae3c379f6f3c03436532b5c446d40928e298f Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Fri, 10 Jan 2020 16:37:40 +0000 Subject: Cleaning up libgitmail project tree --- libgitmail/Cargo.toml | 2 ++ libgitmail/src/patch/mod.rs | 2 ++ 2 files changed, 4 insertions(+) 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()) -- cgit v1.2.3