diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-05-09 18:45:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-09 18:45:40 +0200 |
| commit | 59722228b981f86d5540a43d9eb2cd2c66da92e9 (patch) | |
| tree | b82b7f0fbf7fc4e704abf313c21688643b11635f | |
| parent | 0e00ed5f48f9490b0d1850492f2fc8ad53b192a8 (diff) | |
| parent | 521d2c3d3cc4814586aa13c74197f0894c021abc (diff) | |
| download | rust-59722228b981f86d5540a43d9eb2cd2c66da92e9.tar.gz rust-59722228b981f86d5540a43d9eb2cd2c66da92e9.zip | |
Rollup merge of #96858 - notriddle:notriddle/cleanup-search-js, r=GuillaumeGomez
Remove unused param from search.js::checkPath
| -rw-r--r-- | src/librustdoc/html/static/js/search.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/js/search.js b/src/librustdoc/html/static/js/search.js index 1e3894c1fcd..677e9b5f03a 100644 --- a/src/librustdoc/html/static/js/search.js +++ b/src/librustdoc/html/static/js/search.js @@ -1089,7 +1089,7 @@ window.initSearch = rawSearchIndex => { return parsedQuery.literalSearch ? MAX_LEV_DISTANCE + 1 : lev; } - function checkPath(contains, lastElem, ty) { + function checkPath(contains, ty) { if (contains.length === 0) { return 0; } @@ -1306,7 +1306,7 @@ window.initSearch = rawSearchIndex => { } if (elem.fullPath.length > 1) { - lev = checkPath(elem.pathWithoutLast, elem.pathLast, row); + lev = checkPath(elem.pathWithoutLast, row); if (lev > MAX_LEV_DISTANCE || (parsedQuery.literalSearch && lev !== 0)) { return; } else if (lev > 0) { |
