]> git.lizzy.rs Git - rust.git/commit
Merge #2329
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Wed, 20 Nov 2019 18:16:35 +0000 (18:16 +0000)
committerGitHub <noreply@github.com>
Wed, 20 Nov 2019 18:16:35 +0000 (18:16 +0000)
commit5aec3e4a7b21855fb4688e466d4f5bee9feabe2e
tree41a304a33955dd12d1f0ec127a80551367c8ffa0
parent7a5fd1f3f3c4a8f64407f9bd08a3d5e7f79417e0
parentbcb2ea912bf96f38505c67a0b6896c6a5ac278ed
Merge #2329

2329: fix 2190; add test for "replace if let with match" r=matklad a=fkohlgrueber

Fixes #2190.

Check that the expression doesn't contain newlines only for "replace if let with match". For "join lines", enclosing blocks for multiline expressions should be removed.

Co-authored-by: Felix Kohlgrüber <felix.kohlgrueber@gmail.com>