config: rewrite

test

test

origin

test

test
This commit is contained in:
Luna Yao
2026-04-29 11:44:22 +02:00
parent 0a23546e3f
commit 92af568d8b
13 changed files with 337 additions and 250 deletions
+7 -1
View File
@@ -39,9 +39,15 @@ impl From<(IpAddr, &ConnectionConfig)> for NameServerAddr {
}
}
impl From<&NameServerAddr> for Url {
fn from(value: &NameServerAddr) -> Self {
Url::parse(&format!("{}://{}", value.protocol, value.addr)).unwrap()
}
}
impl From<NameServerAddr> for Url {
fn from(value: NameServerAddr) -> Self {
Url::parse(&format!("{}://{}", value.protocol, value.addr)).unwrap()
(&value).into()
}
}