about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-09-02 19:10:18 +0200
committerGitHub <noreply@github.com>2021-09-02 19:10:18 +0200
commit0d105c0e77a35cbb6513b4bbaa4d8a2d4fd4009e (patch)
tree348f0156f0e5009af1e61924ecfb5014df6ac5ed /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parentffbce26e24cb1cf955f07cee0d0e1c59d1692edb (diff)
parentf5f489b945f2fe67474a1a49c5b19cffebc2e7bb (diff)
downloadrust-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