]> git.lizzy.rs Git - rust.git/commitdiff
Fix implementors generation as well
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sun, 1 Jul 2018 14:11:14 +0000 (16:11 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 6 Sep 2018 21:32:30 +0000 (23:32 +0200)
src/librustdoc/html/static/main.js

index 51ed62678292662fd4201c4e1ddcf630819c1c88..a3af621a8a4163dbfdfbe7f9b8183e6e504b7a1c 100644 (file)
                         x[k].setAttribute('href', rootPath + href);
                     }
                 }
-                var li = document.createElement('li');
-                li.appendChild(code);
-                list.appendChild(li);
+                var display = document.createElement('h3');
+                addClass(display, "impl");
+                display.innerHTML = '<span class="in-band"><table class="table-display"><tbody>\
+                    <tr><td><code>' + code.outerHTML + '</code></td><td></td></tr></tbody></table>\
+                    </span>';
+                list.appendChild(display);
             }
         }
     };