]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #84013 - CDirkx:fmt, r=m-ou-se
authorMara Bos <m-ou.se@m-ou.se>
Wed, 21 Apr 2021 21:06:11 +0000 (23:06 +0200)
committerGitHub <noreply@github.com>
Wed, 21 Apr 2021 21:06:11 +0000 (23:06 +0200)
Replace all `fmt.pad` with `debug_struct`

This replaces any occurrence of:
- `f.pad("X")` with `f.debug_struct("X").finish()`
- `f.pad("X { .. }")` with `f.debug_struct("X").finish_non_exhaustive()`

This is in line with existing formatting code such as
https://github.com/rust-lang/rust/blob/125505306744a0a5bb01d62337260a95d9ff8d57/library/std/src/sync/mpsc/mod.rs#L1470-L1475

1  2 
library/std/src/thread/local.rs

Simple merge