@@ -2266,15 +2266,10 @@ fn item_function(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2266
2266
AbiSpace ( f. abi) ,
2267
2267
it. name. as_ref( ) . unwrap( ) ,
2268
2268
f. generics) . len ( ) ;
2269
- let mut extra = render_spotlight_traits ( it) ?;
2270
- if !extra. is_empty ( ) {
2271
- extra. insert_str ( 0 , "<div class=\" important-traits\" >ⓘ<div class=\" content hidden\" >" ) ;
2272
- extra. push_str ( "</div></div>" ) ;
2273
- } ;
2274
- write ! ( w, "<pre class='rust fn'>" ) ?;
2269
+ write ! ( w, "{}<pre class='rust fn'>" , render_spotlight_traits( it) ?) ?;
2275
2270
render_attributes ( w, it) ?;
2276
2271
write ! ( w, "{vis}{constness}{unsafety}{abi}fn \
2277
- {name}{generics}{decl}{where_clause}</pre>{extra} ",
2272
+ {name}{generics}{decl}{where_clause}</pre>",
2278
2273
vis = VisSpace ( & it. visibility) ,
2279
2274
constness = ConstnessSpace ( f. constness) ,
2280
2275
unsafety = UnsafetySpace ( f. unsafety) ,
@@ -2286,8 +2281,7 @@ fn item_function(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2286
2281
decl: & f. decl,
2287
2282
name_len,
2288
2283
indent: 0 ,
2289
- } ,
2290
- extra = extra) ?;
2284
+ } ) ?;
2291
2285
document ( w, cx, it)
2292
2286
}
2293
2287
@@ -3269,8 +3263,9 @@ fn spotlight_decl(decl: &clean::FnDecl) -> Result<String, fmt::Error> {
3269
3263
if impl_. trait_ . def_id ( ) . and_then ( |d| c. traits . get ( & d) )
3270
3264
. map_or ( false , |t| t. is_spotlight ) {
3271
3265
if out. is_empty ( ) {
3272
- out. push_str ( "<span class=\" docblock autohide\" >" ) ;
3273
- out. push_str ( & format ! ( "<h3>Important traits for {}</h3>" , impl_. for_) ) ;
3266
+ out. push_str (
3267
+ & format ! ( "<h3 class=\" important\" >Important traits for {}</h3>" ,
3268
+ impl_. for_) ) ;
3274
3269
out. push_str ( "<code class=\" content\" >" ) ;
3275
3270
}
3276
3271
0 commit comments