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 7b22d58 commit a238fd1Copy full SHA for a238fd1
src/librustdoc/html/static/js/search.js
@@ -2726,8 +2726,7 @@ 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
- //console.log(result.item?.type);
2730
- if (containsTypeFromQuery(result.item?.type?.inputs)) {
+ if (result.item && result.item.type && containsTypeFromQuery(result.item.type.inputs)) {
2731
result.path_dist *= 100;
2732
result.dist *= 100;
2733
console.log(result);
0 commit comments