From c65f2e4642b8599cbe7c424dc1b1645ee6520c0e Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Sat, 14 Oct 2017 00:02:03 -0400 Subject: Don't expose the function to convert disposition type --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index aeccebe..9ba8535 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -589,7 +589,7 @@ impl Default for DispositionType { } /// Convert the string represented disposition type to enum. -pub fn parse_disposition_type(disposition: &str) -> DispositionType { +fn parse_disposition_type(disposition: &str) -> DispositionType { match &disposition.to_lowercase()[..] { "inline" => DispositionType::Inline, "attachment" => DispositionType::Attachment, -- cgit v1.2.3