]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #70229 - matthiaskrgr:cl3ppy, r=Mark-Simulacrum
authorDylan DPC <dylan.dpc@gmail.com>
Sun, 22 Mar 2020 14:48:35 +0000 (15:48 +0100)
committerGitHub <noreply@github.com>
Sun, 22 Mar 2020 14:48:35 +0000 (15:48 +0100)
commite58fec0c1cfa6f306940edb20d8d5f7a3a468d6e
treeb4f2cd7e4685a986232f478b843ba90b6891638c
parent3c8f8b6304e6d8ec735f32a8286a1461f36feeb0
parente45fdcfa9a611e4b29b727fb1c70ea60423f1c24
Rollup merge of #70229 - matthiaskrgr:cl3ppy, r=Mark-Simulacrum

more clippy fixes

* remove unused unit values (clippy::unused_unit)
* make some let-if-bindings more idiomatic (clippy::useless_let_if_seq)
* clarify when we pass () to functions (clippy::unit_arg)
* don't redundantly repeat field names (clippy::redundant_field_names)
* remove redundant returns (clippy::needless_return)
* use let instead of match for matches with single bindings (clippy::match_single_binding)
* don't convert results to options just for matching (clippy::if_let_some_result)
src/librustc/ty/query/plumbing.rs