Skip to content

Commit 3909559

Browse files
committed
Do not use static strings
1 parent 3d10f60 commit 3909559

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
@@ -23,8 +23,7 @@ use crate::contact::{Contact, ContactId, Origin};
2323
use crate::context::Context;
2424
use crate::e2ee::EncryptHelper;
2525
use crate::ephemeral::Timer as EphemeralTimer;
26-
use crate::key::self_fingerprint;
27-
use crate::key::{DcKey, SignedPublicKey};
26+
use crate::key::{DcKey, self_fingerprint, SignedPublicKey};
2827
use crate::location;
2928
use crate::log::{info, warn};
3029
use crate::message::{self, Message, MsgId, Viewtype};
@@ -1494,7 +1493,7 @@ impl MimeFactory {
14941493
}
14951494
SystemMessage::IrohNodeAddr => {
14961495
headers.push((
1497-
"Iroh-Node-Addr",
1496+
HeaderDef::IrohNodeAddr.into(),
14981497
mail_builder::headers::text::Text::new(serde_json::to_string(
14991498
&context
15001499
.get_or_try_init_peer_channel()
@@ -1676,7 +1675,7 @@ impl MimeFactory {
16761675
parts.push(context.build_status_update_part(json));
16771676
} else if msg.viewtype == Viewtype::Webxdc {
16781677
headers.push((
1679-
"Iroh-Gossip-Topic",
1678+
HeaderDef::IrohGossipTopic.into(),
16801679
mail_builder::headers::raw::Raw::new(create_iroh_header(context, msg.id).await?)
16811680
.into(),
16821681
));

0 commit comments

Comments
 (0)