about summary refs log tree commit diff
path: root/tests/ui/iterators/iter-sum-overflow-overflow-checks.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-12-27 19:46:03 +0000
committerbors <bors@rust-lang.org>2022-12-27 19:46:03 +0000
commit3033c3ddbfcb0e42084ada8931e88d11eb98dee4 (patch)
treedf1859eb68c1176c275572797be2db2b76842818 /tests/ui/iterators/iter-sum-overflow-overflow-checks.rs
parent74ae2dd3039cd80fc77e4ed0c0a206be6660dd9a (diff)
parentd3dbf9c194d0badc7c340ae012069f67d55e4753 (diff)
downloadrust-3033c3ddbfcb0e42084ada8931e88d11eb98dee4.tar.gz
rust-3033c3ddbfcb0e42084ada8931e88d11eb98dee4.zip
Auto merge of #13841 - nyurik:lints2, r=lnicola
Moar linting: needless_borrow, let_unit_value, ...

* There are a few needless borrows that don't seem to be needed. I even did a quick assembly comparison and posted a q to stackoveflow on it. See [here](https://stackoverflow.com/questions/74910196/advantages-of-pass-by-ref-val-with-impl-intoiteratoritem-impl-asrefstr)
* removed several `let _ = ...` when they don't look necessary (even a few ones that were not suggested by clippy (?))
* some unneeded assignment+return - keep the code a bit leaner
* a few `writeln!` instead of `write!`, or even consolidate write!
* a nice optimization to use `ch.is_ascii_digit` instead of `ch.is_digit(10)`
Diffstat (limited to 'tests/ui/iterators/iter-sum-overflow-overflow-checks.rs')
0 files changed, 0 insertions, 0 deletions