]> git.lizzy.rs Git - rust.git/commitdiff
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)
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)

1  2 
src/librustc/ty/query/plumbing.rs

Simple merge