fix mime() method

This commit is contained in:
Quentin 2023-09-18 18:08:07 +02:00
parent df0c6fa34f
commit a7bd3c475a
Signed by: quentin
GPG Key ID: E9602264D639FF68
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ use nom::{
};
use crate::mime;
use crate::mime::AnyMIME;
use crate::mime::{AnyMIME, NaiveMIME};
use crate::part::{
composite::{message, multipart, Message, Multipart},
discrete::{Binary, Text},
@ -58,7 +58,7 @@ impl<'a> AnyPart<'a> {
_ => None,
}
}
pub fn mime(self) -> &NaiveMIME<'a> {
pub fn mime(&self) -> &NaiveMIME<'a> {
match self {
Self::Mult(v) => &v.mime.fields,
Self::Msg(v) => &v.mime.fields,