Skip to content

Commit e15e1b2

Browse files
Update src/librustdoc/html/render/search_index.rs
Co-authored-by: Guillaume Gomez <[email protected]>
1 parent 341866a commit e15e1b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/render/search_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub(crate) fn build_index(
9393
),
9494
aliases: item.attrs.get_doc_aliases(),
9595
deprecation: item.deprecation(tcx),
96-
is_unstable: item.stability(tcx).map(|x| x.is_unstable()).unwrap_or(false),
96+
is_unstable: item.stability(tcx).is_some_and(|x| x.is_unstable()),
9797
});
9898
}
9999
}

0 commit comments

Comments
 (0)