Skip to content

Commit 5972222

Browse files
authored
Rollup merge of #96858 - notriddle:notriddle/cleanup-search-js, r=GuillaumeGomez
Remove unused param from search.js::checkPath
2 parents 0e00ed5 + 521d2c3 commit 5972222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/static/js/search.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ window.initSearch = rawSearchIndex => {
10891089
return parsedQuery.literalSearch ? MAX_LEV_DISTANCE + 1 : lev;
10901090
}
10911091

1092-
function checkPath(contains, lastElem, ty) {
1092+
function checkPath(contains, ty) {
10931093
if (contains.length === 0) {
10941094
return 0;
10951095
}
@@ -1306,7 +1306,7 @@ window.initSearch = rawSearchIndex => {
13061306
}
13071307

13081308
if (elem.fullPath.length > 1) {
1309-
lev = checkPath(elem.pathWithoutLast, elem.pathLast, row);
1309+
lev = checkPath(elem.pathWithoutLast, row);
13101310
if (lev > MAX_LEV_DISTANCE || (parsedQuery.literalSearch && lev !== 0)) {
13111311
return;
13121312
} else if (lev > 0) {

0 commit comments

Comments
 (0)