about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-06-20 20:07:13 +0000
committerbors <bors@rust-lang.org>2021-06-20 20:07:13 +0000
commit354decc4cd4c087c6627ea314681f22d7cecca8e (patch)
treed7416f1d46b69d79e6ed5c65c076a021e3190516 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent551931c3ca489e6bd56ce5df077df1b5eac8347e (diff)
parentdc4ea800b7126e0751ba75eae095cc2a805dc8da (diff)
downloadrust-354decc4cd4c087c6627ea314681f22d7cecca8e.tar.gz
rust-354decc4cd4c087c6627ea314681f22d7cecca8e.zip
Auto merge of #85538 - r00ster91:iterrepeat, r=Mark-Simulacrum
Replace some `std::iter::repeat` with `str::repeat`

I noticed that there were some instances where `std::iter::repeat` would be used to repeat a string or a char to take a specific count of it and then collect it into a `String` when `str::repeat` is actually much faster and better for that.

See also: https://github.com/rust-lang/rust-clippy/issues/7260.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions