Skip to content

Commit

Permalink
Auto merge of rust-lang#85538 - r00ster91:iterrepeat, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
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: rust-lang/rust-clippy#7260.
  • Loading branch information
bors committed Jun 20, 2021
2 parents 551931c + dc4ea80 commit 354decc
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 354decc

Please sign in to comment.