diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-07-01 16:11:14 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-09-06 23:32:30 +0200 |
| commit | 1b3382f2b9d1f6137f6415532a01faf55241c6dc (patch) | |
| tree | 2fca076cc0fb433806fadc67941204d07aa43662 /src | |
| parent | d65c8636d994ffefc36b1a690fcf6c2796e6e325 (diff) | |
| download | rust-1b3382f2b9d1f6137f6415532a01faf55241c6dc.tar.gz rust-1b3382f2b9d1f6137f6415532a01faf55241c6dc.zip | |
Fix implementors generation as well
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/html/static/main.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index 51ed6267829..a3af621a8a4 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -1791,9 +1791,12 @@ 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); } } }; |
