diff --git a/src/app.rs b/src/app.rs index bada405..fd857b7 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1193,7 +1193,7 @@ impl SearchState { if !self.result_cache.contains_key(entry.entry_id()) { self.result_cache .entry(entry.entry_id().clone()) - .or_insert_with(BTreeMap::new); + .or_default(); } // Always recurse into tiles, because results can be fetched @@ -1215,7 +1215,7 @@ impl SearchState { .and_modify(|_| { result = false; }) - .or_insert_with(BTreeMap::new); + .or_default(); result } @@ -1254,10 +1254,10 @@ impl SearchState { let level0_subtree = self .entry_tree .entry(level0_index) - .or_insert_with(BTreeMap::new); + .or_default(); let level1_subtree = level0_subtree .entry(level1_index) - .or_insert_with(BTreeSet::new); + .or_default(); level1_subtree.insert(level2_index); } }