We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a238fd1 commit eda171dCopy full SHA for eda171d
src/librustdoc/html/static/js/search.js
@@ -2726,7 +2726,8 @@ class DocSearch {
2726
// we are doing a return-type based search,
2727
// deprioritize "clone-like" results,
2728
// ie. functions that also take the queried type as an argument.
2729
- if (result.item && result.item.type && containsTypeFromQuery(result.item.type.inputs)) {
+ const hasType = result.item && result.item.type;
2730
+ if (hasType && containsTypeFromQuery(result.item.type.inputs)) {
2731
result.path_dist *= 100;
2732
result.dist *= 100;
2733
console.log(result);
0 commit comments