about summary refs log tree commit diff
path: root/src/rustllvm/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2020-04-08 15:50:19 +0200
committerGitHub <noreply@github.com>2020-04-08 15:50:19 +0200
commit5ea477143318468460acde5495f69fe8855c456e (patch)
tree92d1eba7e1e6abc5debb38bc61790ffd41f715fe /src/rustllvm/CoverageMappingWrapper.cpp
parent1e1bd519a176f5e518c51814958dc64e8e7c1758 (diff)
parente26ae7a0ff54cbb229790011df1031df68d258bb (diff)
downloadrust-5ea477143318468460acde5495f69fe8855c456e.tar.gz
rust-5ea477143318468460acde5495f69fe8855c456e.zip
Rollup merge of #5412 - dtolnay:tostring, r=flip1995
Downgrade inefficient_to_string to pedantic

From the [documentation](https://rust-lang.github.io/rust-clippy/master/index.html#inefficient_to_string):

> ```diff
> - ["foo", "bar"].iter().map(|s| s.to_string());
>
> + ["foo", "bar"].iter().map(|&s| s.to_string());
> ```

I feel like saving 10 nanoseconds from the formatting machinery isn't worth asking the programmer to insert extra `&` / `*` noise in the *vast* majority of cases. This is a pedantic lint.

changelog: Remove inefficient_to_string from default set of enabled lints
Diffstat (limited to 'src/rustllvm/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions