From f3e94f3aca7cd6d3407bc9f6ba82707c7a7c0784 Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Sun, 12 Jun 2016 20:17:48 -0400 Subject: Bump quoted-printable dependency to 0.3 --- Cargo.toml | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7128094..d588c0d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,5 +5,5 @@ authors = ["Kartikaya Gupta "] [dependencies] base64 = "0.1.1" -quoted_printable = "0.2.0" +quoted_printable = "0.3.0" encoding = "0.2.32" diff --git a/src/lib.rs b/src/lib.rs index 8465493..1617748 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -135,8 +135,8 @@ impl<'a> MailHeader<'a> { let decoded = match transfer_coding { "B" => try!(base64::u8de(input.as_bytes())), "Q" => { - try!(quoted_printable::decode(&input.replace("_", " "), - quoted_printable::ParseMode::Robust)) + try!(quoted_printable::decode_str(&input.replace("_", " "), + quoted_printable::ParseMode::Robust)) } _ => { return Err(MailParseError::Generic("Unknown transfer-coding name found in \ -- cgit v1.2.3