web search done right
merge subdomain counts
Mikkel Denkerb8d6afc7532a
diff --git a/src/subdomain_count.rs b/src/subdomain_count.rsindex 591575fb..8676989a 100644--- a/src/subdomain_count.rs+++ b/src/subdomain_count.rs@@ -48,6 +48,10 @@ impl SubdomainCounter {}pub fn merge(&mut self, other: Self) {- todo!();+ for (key, val) in other.inner.iter() {+ let mut current = self.inner.get(&key).unwrap_or_default();+ current.extend(val.into_iter());+ self.inner.insert(key, current);+ }}}