]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #70254 - matthiaskrgr:cl4ppy, r=Centril
authorDylan DPC <dylan.dpc@gmail.com>
Sun, 22 Mar 2020 14:48:41 +0000 (15:48 +0100)
committerGitHub <noreply@github.com>
Sun, 22 Mar 2020 14:48:41 +0000 (15:48 +0100)
couple more clippy fixes (let_and_return, if_same_then_else)

* summarize if-else-code with identical blocks (clippy::if_same_then_else)
* don't create variable bindings just to return the bound value immediately (clippy::let_and_return)

1  2 
src/librustc/hir/map/mod.rs
src/librustc_mir/transform/const_prop.rs
src/librustc_parse/lexer/mod.rs

Simple merge
Simple merge