]> git.lizzy.rs Git - rust.git/commit
Don't drop opening brace on long line matches. (#1228)
authorLuke Clifton <luke-clifton@users.noreply.github.com>
Mon, 28 Nov 2016 00:47:38 +0000 (08:47 +0800)
committerNick Cameron <nrc@ncameron.org>
Mon, 28 Nov 2016 00:47:38 +0000 (13:47 +1300)
commit56469a87453e9c8e1b65787d763626442d5a6345
treeed1702fd5db1ce0e9bd898ae281c0d1aa850c881
parent6bf1382927ffab929a2153d894f306d7c30a3e82
Don't drop opening brace on long line matches. (#1228)

* Don't drop opening brace on long line matches.

Fixes #1225

* Added a test case for long match arms with braces on newline.
src/expr.rs
tests/source/long-match-arms-brace-newline.rs [new file with mode: 0644]
tests/target/long-match-arms-brace-newline.rs [new file with mode: 0644]