summaryrefslogtreecommitdiffstats
path: root/categories/src
diff options
context:
space:
mode:
authorKornel <kornel@geekhood.net>2020-02-19 14:37:00 +0000
committerKornel <kornel@geekhood.net>2020-02-19 14:52:10 +0000
commit2d4628ddc9dad98a433bf77b8a2ed9566ad4b47c (patch)
treee13ce2b89cd1445b676830c8ccd9baae741b1673 /categories/src
parent4fabce20378824b60620073636e64cc4d2a61bed (diff)
Less category guessing
Diffstat (limited to 'categories/src')
-rw-r--r--categories/src/tuning.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/categories/src/tuning.rs b/categories/src/tuning.rs
index c256447..c6f9f2c 100644
--- a/categories/src/tuning.rs
+++ b/categories/src/tuning.rs
@@ -1090,7 +1090,7 @@ lazy_static! {
/// Based on the set of keywords, adjust relevance of given categories
///
/// Returns (weight, slug)
-pub fn adjusted_relevance(mut candidates: HashMap<String, f64>, keywords: HashSet<String>, min_category_match_threshold: f64, max_num_categories: usize) -> Vec<(f64, String)> {
+pub fn adjusted_relevance(mut candidates: HashMap<String, f64>, keywords: &HashSet<String>, min_category_match_threshold: f64, max_num_categories: usize) -> Vec<(f64, String)> {
for (cond, actions) in KEYWORD_CATEGORIES.iter() {
if match cond {
Cond::All(reqs) => {