diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-04-21 23:06:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-21 23:06:11 +0200 |
| commit | a7a77371146329653deb3426b1983b8b85604797 (patch) | |
| tree | 9ca0d7805e098ed20e5850944527ee56ce903e1e /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs | |
| parent | b849326744a8eec939e592f0ab13bff85cc865d3 (diff) | |
| parent | fccc75cf8299158125f5785855d7235a178434d7 (diff) | |
| download | rust-a7a77371146329653deb3426b1983b8b85604797.tar.gz rust-a7a77371146329653deb3426b1983b8b85604797.zip | |
Rollup merge of #84013 - CDirkx:fmt, r=m-ou-se
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
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions
