Skip to content

Commit 495481b

Browse files
committed
Do not use static strings
1 parent bb5c107 commit 495481b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/mimefactory.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ use crate::contact::{Contact, ContactId, Origin};
2121
use crate::context::Context;
2222
use crate::e2ee::EncryptHelper;
2323
use crate::ephemeral::Timer as EphemeralTimer;
24-
use crate::key::self_fingerprint;
25-
use crate::key::{DcKey, SignedPublicKey};
24+
use crate::key::{DcKey, self_fingerprint, SignedPublicKey};
2625
use crate::location;
2726
use crate::log::{info, warn};
2827
use crate::message::{Message, MsgId, Viewtype};
@@ -1492,7 +1491,7 @@ impl MimeFactory {
14921491
}
14931492
SystemMessage::IrohNodeAddr => {
14941493
headers.push((
1495-
"Iroh-Node-Addr",
1494+
HeaderDef::IrohNodeAddr.into(),
14961495
mail_builder::headers::text::Text::new(serde_json::to_string(
14971496
&context
14981497
.get_or_try_init_peer_channel()
@@ -1674,7 +1673,7 @@ impl MimeFactory {
16741673
parts.push(context.build_status_update_part(json));
16751674
} else if msg.viewtype == Viewtype::Webxdc {
16761675
headers.push((
1677-
"Iroh-Gossip-Topic",
1676+
HeaderDef::IrohGossipTopic.into(),
16781677
mail_builder::headers::raw::Raw::new(create_iroh_header(context, msg.id).await?)
16791678
.into(),
16801679
));

0 commit comments

Comments
 (0)