File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ impl Resolver for TokioResolver {
358
358
///
359
359
/// [`TxtRecord`] implements [`fmt::Display`], so you can call [`ToString::to_string`] to
360
360
/// 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 .
362
362
///
363
363
/// If you want to process each character string individually, use [`Self::iter`].
364
364
///
Original file line number Diff line number Diff line change @@ -41,13 +41,9 @@ use std::{
41
41
} ;
42
42
43
43
use anyhow:: { anyhow, Result } ;
44
- #[ cfg( not( wasm_browser) ) ]
45
44
use iroh_base:: { NodeAddr , NodeId , RelayUrl , SecretKey } ;
46
- #[ cfg( not( wasm_browser) ) ]
47
45
use url:: Url ;
48
46
49
- #[ cfg( not( wasm_browser) ) ]
50
-
51
47
/// The DNS name for the iroh TXT record.
52
48
pub const IROH_TXT_NAME : & str = "_iroh" ;
53
49
@@ -560,7 +556,7 @@ pub(crate) fn ensure_iroh_txt_label(name: String) -> String {
560
556
if parts. next ( ) == Some ( IROH_TXT_NAME ) {
561
557
name
562
558
} else {
563
- [ IROH_TXT_NAME , ". ", & name] . join ( "." )
559
+ format ! ( "{}.{} ", IROH_TXT_NAME , name)
564
560
}
565
561
}
566
562
You can’t perform that action at this time.
0 commit comments