diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-09-02 19:10:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-02 19:10:18 +0200 |
| commit | 0d105c0e77a35cbb6513b4bbaa4d8a2d4fd4009e (patch) | |
| tree | 348f0156f0e5009af1e61924ecfb5014df6ac5ed /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs | |
| parent | ffbce26e24cb1cf955f07cee0d0e1c59d1692edb (diff) | |
| parent | f5f489b945f2fe67474a1a49c5b19cffebc2e7bb (diff) | |
| download | rust-0d105c0e77a35cbb6513b4bbaa4d8a2d4fd4009e.tar.gz rust-0d105c0e77a35cbb6513b4bbaa4d8a2d4fd4009e.zip | |
Rollup merge of #88560 - klensy:formatter-pad-shrink, r=m-ou-se
`fmt::Formatter::pad`: don't call chars().count() more than one time First commit merges two branches of match to call chars().count() only once: that should be faster if this method hits place of 3rd (previous) branch, plus quarter shorter. Second commit fixes some clippy lints while i'm here (should it be separate PR?).
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions
