Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid copying the message three times in ProgressBar::message (#105)
String::replace doesn't modify the original String, so `to_owned` can be dropped. It also accepts &[char] as a pattern and replaces any of the chars found. The two calls to `replace` can thus be combined into one. This brings us from three copies with two scan passes down to one copy with one scan pass.
- Loading branch information