We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db5b365 commit 521d2c3Copy full SHA for 521d2c3
src/librustdoc/html/static/js/search.js
@@ -1089,7 +1089,7 @@ window.initSearch = rawSearchIndex => {
1089
return parsedQuery.literalSearch ? MAX_LEV_DISTANCE + 1 : lev;
1090
}
1091
1092
- function checkPath(contains, lastElem, ty) {
+ function checkPath(contains, ty) {
1093
if (contains.length === 0) {
1094
return 0;
1095
@@ -1306,7 +1306,7 @@ window.initSearch = rawSearchIndex => {
1306
1307
1308
if (elem.fullPath.length > 1) {
1309
- lev = checkPath(elem.pathWithoutLast, elem.pathLast, row);
+ lev = checkPath(elem.pathWithoutLast, row);
1310
if (lev > MAX_LEV_DISTANCE || (parsedQuery.literalSearch && lev !== 0)) {
1311
return;
1312
} else if (lev > 0) {
0 commit comments