@@ -3255,6 +3255,7 @@ fn render_spotlight_traits(item: &clean::Item) -> Result<String, fmt::Error> {
32553255
32563256fn spotlight_decl ( decl : & clean:: FnDecl ) -> Result < String , fmt:: Error > {
32573257 let mut out = String :: new ( ) ;
3258+ let mut trait_ = String :: new ( ) ;
32583259
32593260 if let Some ( did) = decl. output . def_id ( ) {
32603261 let c = cache ( ) ;
@@ -3265,9 +3266,10 @@ fn spotlight_decl(decl: &clean::FnDecl) -> Result<String, fmt::Error> {
32653266 . map_or ( false , |t| t. is_spotlight ) {
32663267 if out. is_empty ( ) {
32673268 out. push_str (
3268- & format ! ( "<h3 class=\" important\" >Important traits for {}</h3>" ,
3269+ & format ! ( "<h3 class=\" important\" >Important traits for {}</h3>\
3270+ <code class=\" content\" >",
32693271 impl_. for_) ) ;
3270- out . push_str ( "<code class= \" content \" >" ) ;
3272+ trait_ . push_str ( & format ! ( "{}" , impl_ . for_ ) ) ;
32713273 }
32723274
32733275 //use the "where" class here to make it small
@@ -3288,8 +3290,11 @@ fn spotlight_decl(decl: &clean::FnDecl) -> Result<String, fmt::Error> {
32883290 }
32893291
32903292 if !out. is_empty ( ) {
3291- out. insert_str ( 0 , "<div class=\" important-traits\" >ⓘ<div class=\" content hidden\" >" ) ;
3292- out. push_str ( "</code></span></div></div>" ) ;
3293+ out. insert_str ( 0 , & format ! ( "<div class=\" important-traits\" ><div class='tooltip'>ⓘ\
3294+ <span class='tooltiptext'>Important traits for {}</span></div>\
3295+ <div class=\" content hidden\" >",
3296+ trait_) ) ;
3297+ out. push_str ( "</code></div></div>" ) ;
32933298 }
32943299
32953300 Ok ( out)
0 commit comments