Compare commits
No commits in common. "lifetime" and "main" have entirely different histories.
2 changed files with 3 additions and 3 deletions
|
@ -56,7 +56,7 @@ use nom::{combinator::into, IResult};
|
|||
/// String::from_utf8_lossy(email.child.as_text().unwrap().body),
|
||||
/// );
|
||||
/// ```
|
||||
pub fn parse_message<'a>(input: &'a [u8]) -> IResult<&'a[u8], part::composite::Message<'a>> {
|
||||
pub fn parse_message(input: &[u8]) -> IResult<&[u8], part::composite::Message> {
|
||||
into(part::composite::message(mime::MIME::<
|
||||
mime::r#type::DeductibleMessage,
|
||||
>::default()))(input)
|
||||
|
@ -99,6 +99,6 @@ pub fn parse_message<'a>(input: &'a [u8]) -> IResult<&'a[u8], part::composite::M
|
|||
/// imf.subject.unwrap().to_string(),
|
||||
/// );
|
||||
/// ```
|
||||
pub fn parse_imf<'a>(input: &'a [u8]) -> IResult<&'a [u8], imf::Imf<'a>> {
|
||||
pub fn parse_imf(input: &[u8]) -> IResult<&[u8], imf::Imf> {
|
||||
imf::imf(input)
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ pub enum MIMEWord<'a> {
|
|||
Quoted(QuotedString<'a>),
|
||||
Atom(&'a [u8]),
|
||||
}
|
||||
impl<'a> Default for MIMEWord<'a> {
|
||||
impl Default for MIMEWord<'static> {
|
||||
fn default() -> Self {
|
||||
Self::Atom(&[])
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue