Skip to content

Commit 5168b02

Browse files
committed
fixup
1 parent cdae14f commit 5168b02

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

iroh-relay/src/dns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ impl Resolver for TokioResolver {
358358
///
359359
/// [`TxtRecord`] implements [`fmt::Display`], so you can call [`ToString::to_string`] to
360360
/// convert the record data into a string. This will parse each character string with
361-
/// [`String::from_utf8_lossy`] and then concatenate all strings without a seperator.
361+
/// [`String::from_utf8_lossy`] and then concatenate all strings without a separator.
362362
///
363363
/// If you want to process each character string individually, use [`Self::iter`].
364364
///

iroh-relay/src/node_info.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,9 @@ use std::{
4141
};
4242

4343
use anyhow::{anyhow, Result};
44-
#[cfg(not(wasm_browser))]
4544
use iroh_base::{NodeAddr, NodeId, RelayUrl, SecretKey};
46-
#[cfg(not(wasm_browser))]
4745
use url::Url;
4846

49-
#[cfg(not(wasm_browser))]
50-
5147
/// The DNS name for the iroh TXT record.
5248
pub const IROH_TXT_NAME: &str = "_iroh";
5349

@@ -560,7 +556,7 @@ pub(crate) fn ensure_iroh_txt_label(name: String) -> String {
560556
if parts.next() == Some(IROH_TXT_NAME) {
561557
name
562558
} else {
563-
[IROH_TXT_NAME, ".", &name].join(".")
559+
format!("{}.{}", IROH_TXT_NAME, name)
564560
}
565561
}
566562

0 commit comments

Comments
 (0)