]> git.lizzy.rs Git - rust.git/commit
Merge #3700
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Tue, 24 Mar 2020 11:48:32 +0000 (11:48 +0000)
committerGitHub <noreply@github.com>
Tue, 24 Mar 2020 11:48:32 +0000 (11:48 +0000)
commit6ef64622afd818d7b091e36b8228bc8ebd52d2e1
treecc93bacfd4b51fb2c60e4da01f5df34e87fc7eaf
parent8617fe641ddc0d8c4303c5bbe49152ea320ef179
parentff62ef19f7c29b033d49962bfebf4d4cf43694d5
Merge #3700

3700: fill match arms with empty block rather than unit tuple r=matklad a=JoshMcguigan

As requested by @Veetaha in #3689 and #3687, this modifies the fill match arms assist to create match arms as an empty block `{}` rather than a unit tuple `()`.

In one test I left one of the pre-existing match arms as a unit tuple, and added a body to another match arm, to demonstrate that the contents of existing match arms persist.

Co-authored-by: Josh Mcguigan <joshmcg88@gmail.com>
crates/ra_assists/src/handlers/fill_match_arms.rs