diff --git a/src/headers/hex_encoding.rs b/src/headers/hex_encoding.rs index 5a473b4..4d748af 100644 --- a/src/headers/hex_encoding.rs +++ b/src/headers/hex_encoding.rs @@ -1,6 +1,6 @@ use std::fmt::{self, Write}; -use super::{hex, utils, EmailWriter}; +use super::{hex, utils, writer::EmailWriter}; pub(super) fn percent_encode_char(w: &mut EmailWriter<'_>, to_append: char) -> fmt::Result { encode_char(w, '%', to_append) diff --git a/src/headers/mod.rs b/src/headers/mod.rs index 04dcfb8..59d5d0b 100644 --- a/src/headers/mod.rs +++ b/src/headers/mod.rs @@ -1,8 +1,5 @@ //! Email header encoding algorithms. -#[deprecated(note = "Import it through the writer module", since = "0.1.1")] -pub use self::writer::EmailWriter; - mod hex; mod hex_encoding; pub mod quoted_string; diff --git a/src/headers/quoted_string.rs b/src/headers/quoted_string.rs index 8bbca14..2981f50 100644 --- a/src/headers/quoted_string.rs +++ b/src/headers/quoted_string.rs @@ -2,7 +2,7 @@ use std::fmt::{self, Write}; -use super::{rfc2047, utils, EmailWriter}; +use super::{rfc2047, utils, writer::EmailWriter}; /// Encode a string that may need to be quoted. /// diff --git a/src/headers/rfc2047.rs b/src/headers/rfc2047.rs index a7ef87e..fab9e4b 100644 --- a/src/headers/rfc2047.rs +++ b/src/headers/rfc2047.rs @@ -4,7 +4,7 @@ use std::fmt::{self, Write}; -use super::{utils, EmailWriter, MAX_LINE_LEN}; +use super::{utils, writer::EmailWriter, MAX_LINE_LEN}; const ENCODING_START_PREFIX: &str = "=?utf-8?b?"; const ENCODING_END_SUFFIX: &str = "?="; diff --git a/src/headers/rfc2231.rs b/src/headers/rfc2231.rs index d62471f..e37c984 100644 --- a/src/headers/rfc2231.rs +++ b/src/headers/rfc2231.rs @@ -4,7 +4,7 @@ use std::fmt::{self, Write}; -use super::{hex_encoding, utils, EmailWriter, MAX_LINE_LEN}; +use super::{hex_encoding, utils, writer::EmailWriter, MAX_LINE_LEN}; /// Encode a string via RFC 2231. /// diff --git a/src/headers/writer.rs b/src/headers/writer.rs index f6f319f..eb1a67d 100644 --- a/src/headers/writer.rs +++ b/src/headers/writer.rs @@ -48,13 +48,6 @@ impl<'a> EmailWriter<'a> { Ok(()) } - #[cfg(not(tarpaulin_include))] - #[doc(hidden)] - #[deprecated(note = "Renamed to `new_line`", since = "0.1.2")] - pub fn new_line_no_initial_space(&mut self) -> fmt::Result { - self.new_line() - } - /// Write a space which _might_ get wrapped to a new line on the next write. pub fn space(&mut self) { self.spaces += 1;