Skip to content

Commit e0a7462

Browse files
committed
rustdoc-search: clean up checkIfInGenerics call at end of checkType
1 parent b6f81e0 commit e0a7462

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,11 +1227,7 @@ function initSearch(rawSearchIndex) {
12271227
// If the current item does not match, try [unboxing] the generic.
12281228
// [unboxing]:
12291229
// https://ndmitchell.com/downloads/slides-hoogle_fast_type_searching-09_aug_2008.pdf
1230-
if (checkIfInGenerics(row, elem)) {
1231-
return true;
1232-
}
1233-
1234-
return false;
1230+
return checkIfInGenerics(row, elem);
12351231
}
12361232

12371233
/**

0 commit comments

Comments
 (0)