Fix empty dom toggle by GuillaumeGomez · Pull Request #84616 · rust-lang/rust (original) (raw)

Currently, the empty impl blocks have toggles:

Screenshot from 2021-04-27 15-15-03

So when you expand it, nothing happens:

Screenshot from 2021-04-27 15-15-07

So now, in case the impl block is empty, we simply don't generate the details/summary wrapping (which also makes DOM lighter, yeay!):

Screenshot from 2021-04-27 15-14-15

r? @jsha