diff --git a/src/alt/path/scoring/mod.rs b/src/alt/path/scoring/mod.rs index fee7b59..cd5b945 100644 --- a/src/alt/path/scoring/mod.rs +++ b/src/alt/path/scoring/mod.rs @@ -135,10 +135,10 @@ pub fn score_paths( .map(|path| cleanse_path(path)) .filter(|path| path != cleansed_path) .map(|path| { - (ScoredPath { + ScoredPath { score: score(cleansed_path, &path, filename_weight, path_weight), path, - }) + } }) .collect() }