]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #84390 - m-ou-se:make-debug-non-exhaustive-without-fields-a-little...
authorMara Bos <m-ou.se@m-ou.se>
Wed, 21 Apr 2021 21:06:21 +0000 (23:06 +0200)
committerGitHub <noreply@github.com>
Wed, 21 Apr 2021 21:06:21 +0000 (23:06 +0200)
Format `Struct { .. }` on one line even with `{:#?}`.

The result of `debug_struct("A").finish_non_exhaustive()` before this change:
```
A {
    ..
}
```
And after this change:
```
A { .. }
```

If there's any fields, the result stays unchanged:
```
A {
    field: value,
    ..
}


Trivial merge