Skip to content

Commit 4870bb5

Browse files
committed
fixup! Implement core::fmt::Display for HumanReadableName
1 parent 3663f82 commit 4870bb5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lightning/src/onion_message/dns_resolution.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ use dnssec_prover::rr::Name;
3636

3737
use lightning_types::features::NodeFeatures;
3838

39+
use std::fmt;
40+
3941
use crate::blinded_path::message::DNSResolverContext;
4042
use crate::io;
4143
#[cfg(feature = "dnssec")]
@@ -287,8 +289,8 @@ impl Readable for HumanReadableName {
287289
}
288290
}
289291

290-
impl std::fmt::Display for HumanReadableName {
291-
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
292+
impl fmt::Display for HumanReadableName {
293+
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
292294
write!(f, "₿{}@{}", self.user(), self.domain())
293295
}
294296
}

0 commit comments

Comments
 (0)