Skip to content

Commit 7568ac7

Browse files
pickfiretesuji
andauthored
Update src/librustdoc/html/render.rs
Co-Authored-By: lzutao <[email protected]>
1 parent 810fa1e commit 7568ac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4070,7 +4070,7 @@ fn get_methods(
40704070
}
40714071
}
40724072
if let Some(stab) = item.stability.as_ref().filter(|stab| stab.level == stability::Unstable) {
4073-
let is_rustc_private = stab.feature.as_ref().map(|s| &**s) == Some("rustc_private");
4073+
let is_rustc_private = stab.feature.as_deref() == Some("rustc_private");
40744074
emojis += if is_rustc_private { "⚙️" } else { "🔬" };
40754075
};
40764076
if item.deprecation().is_some() {

0 commit comments

Comments
 (0)