mirror of
https://github.com/chatmail/core.git
synced 2026-04-25 01:16:29 +03:00
Return &'static str from HeaderDef.get_headername()
This commit is contained in:
committed by
holger krekel
parent
df252c4704
commit
b4573e341f
@@ -402,7 +402,7 @@ impl MimeMessage {
|
||||
}
|
||||
|
||||
pub fn get(&self, headerdef: HeaderDef) -> Option<&String> {
|
||||
self.header.get(&headerdef.get_headername())
|
||||
self.header.get(headerdef.get_headername())
|
||||
}
|
||||
|
||||
fn parse_first_addr(&self, context: &Context, headerdef: HeaderDef) -> Option<MailAddr> {
|
||||
|
||||
Reference in New Issue
Block a user