diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-03-05 22:04:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-05 22:04:10 +0100 |
| commit | 67d735c4bf99dbbbe2eea9a90a0149ffa942f492 (patch) | |
| tree | 9c326d06402d57d5165e349e36ee6d018df3085f /src/test/ui/consts/const-int-arithmetic-overflow.rs | |
| parent | 558115b86ccc60aa2132f0e66527bc24842d1ade (diff) | |
| parent | 84577c86bf5e1908acfc2cd097684f11e828518c (diff) | |
| download | rust-67d735c4bf99dbbbe2eea9a90a0149ffa942f492.tar.gz rust-67d735c4bf99dbbbe2eea9a90a0149ffa942f492.zip | |
Rollup merge of #69736 - matthiaskrgr:even_more_clippy, r=Dylan-DPC
even more clippy cleanups * Don't pass &mut where immutable reference (&) is sufficient (clippy::unnecessary_mut_passed) * Use more efficient &&str to String conversion (clippy::inefficient_to_string) * Don't always eval arguments inside .expect(), use unwrap_or_else and closure. (clippy::expect_fun_call) * Use righthand '&' instead of lefthand "ref". (clippy::toplevel_ref_arg) * Use simple 'for i in x' loops instead of 'while let Some(i) = x.next()' loops on iterators. (clippy::while_let_on_iterator) * Const items have by default a static lifetime, there's no need to annotate it. (clippy::redundant_static_lifetimes) * Remove redundant patterns when matching ( x @ _ to x) (clippy::redundant_pattern)
Diffstat (limited to 'src/test/ui/consts/const-int-arithmetic-overflow.rs')
0 files changed, 0 insertions, 0 deletions
