This commit is contained in:
chayleaf 2024-08-13 08:39:17 +07:00
parent 671bb514e6
commit 54623b7fb0
Signed by: chayleaf
GPG key ID: 78171AD46227E68E

View file

@ -549,14 +549,14 @@ impl ExampleMod {
if domains.insert(split_domain.iter().copied().rev().map(From::from)) {
drop(domains);
let file_name = format!("{DATA_PREFIX}/{qname}_domains.json");
let mut first = false;
let mut first = true;
let domain = match split_domain
.iter()
.copied()
.map(std::str::from_utf8)
.try_fold(String::new(), |mut s, comp| {
if !first {
first = true;
if first {
first = false;
} else {
s.push('.');
}