Skip to content

Commit

Permalink
Update quoted-printable to 0.5.0 and fix doc test
Browse files Browse the repository at this point in the history
Documentation test was broken since quoted_printable 0.4.7
as handling of trailing newlines was changed there
in commit
<staktrace/quoted-printable@9c0e879>.
  • Loading branch information
link2xt committed Jan 17, 2024
1 parent b985c5b commit 2e46311
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ maintenance = { status = "passively-maintained" }

[dependencies]
data-encoding = "2.3.3"
quoted_printable = "0.4.6"
quoted_printable = "0.5.0"
charset = "0.1.3"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ impl<'a> Iterator for PartsIterator<'a> {
/// Some("This is a test email".to_string()));
/// assert_eq!(parsed.subparts.len(), 2);
/// assert_eq!(parsed.subparts[0].get_body().unwrap(),
/// "This is the plaintext version, in utf-8. Proof by Euro: \u{20AC}");
/// "This is the plaintext version, in utf-8. Proof by Euro: \u{20AC}\r\n");
/// assert_eq!(parsed.subparts[1].headers[1].get_value(), "base64");
/// assert_eq!(parsed.subparts[1].ctype.mimetype, "text/html");
/// assert!(parsed.subparts[1].get_body().unwrap().starts_with("<html>"));
Expand Down

0 comments on commit 2e46311

Please sign in to comment.