ugh
This commit is contained in:
parent
671bb514e6
commit
54623b7fb0
|
@ -549,14 +549,14 @@ impl ExampleMod {
|
||||||
if domains.insert(split_domain.iter().copied().rev().map(From::from)) {
|
if domains.insert(split_domain.iter().copied().rev().map(From::from)) {
|
||||||
drop(domains);
|
drop(domains);
|
||||||
let file_name = format!("{DATA_PREFIX}/{qname}_domains.json");
|
let file_name = format!("{DATA_PREFIX}/{qname}_domains.json");
|
||||||
let mut first = false;
|
let mut first = true;
|
||||||
let domain = match split_domain
|
let domain = match split_domain
|
||||||
.iter()
|
.iter()
|
||||||
.copied()
|
.copied()
|
||||||
.map(std::str::from_utf8)
|
.map(std::str::from_utf8)
|
||||||
.try_fold(String::new(), |mut s, comp| {
|
.try_fold(String::new(), |mut s, comp| {
|
||||||
if !first {
|
if first {
|
||||||
first = true;
|
first = false;
|
||||||
} else {
|
} else {
|
||||||
s.push('.');
|
s.push('.');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue