File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2152,7 +2152,7 @@ fn stability_tags(item: &clean::Item) -> String {
2152
2152
}
2153
2153
2154
2154
if let Some ( stab) = item. stability . as_ref ( ) . filter ( |s| s. level == stability:: Unstable ) {
2155
- if stab. feature . as_ref ( ) . map ( |s| & * * s ) == Some ( "rustc_private" ) {
2155
+ if stab. feature . as_deref ( ) == Some ( "rustc_private" ) {
2156
2156
tags += & tag_html ( "internal" , "Internal" ) ;
2157
2157
} else {
2158
2158
tags += & tag_html ( "unstable" , "Experimental" ) ;
@@ -2205,7 +2205,7 @@ fn short_stability(item: &clean::Item, cx: &Context) -> Vec<String> {
2205
2205
}
2206
2206
2207
2207
if let Some ( stab) = item. stability . as_ref ( ) . filter ( |stab| stab. level == stability:: Unstable ) {
2208
- let is_rustc_private = stab. feature . as_ref ( ) . map ( |s| & * * s ) == Some ( "rustc_private" ) ;
2208
+ let is_rustc_private = stab. feature . as_deref ( ) == Some ( "rustc_private" ) ;
2209
2209
2210
2210
let mut message = if is_rustc_private {
2211
2211
"<span class='emoji'>⚙️</span> This is an internal compiler API."
@@ -2214,7 +2214,7 @@ fn short_stability(item: &clean::Item, cx: &Context) -> Vec<String> {
2214
2214
}
2215
2215
. to_owned ( ) ;
2216
2216
2217
- if let Some ( feature) = stab. feature . as_ref ( ) {
2217
+ if let Some ( feature) = stab. feature . as_deref ( ) {
2218
2218
let mut feature = format ! ( "<code>{}</code>" , Escape ( & feature) ) ;
2219
2219
if let ( Some ( url) , Some ( issue) ) = ( & cx. shared . issue_tracker_base_url , stab. issue ) {
2220
2220
feature. push_str ( & format ! (
You can’t perform that action at this time.
0 commit comments