]> git.lizzy.rs Git - rust.git/commit
Only combine `match` if its condition expression fits in a single line
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 8 Oct 2018 23:49:33 +0000 (20:49 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 12 Oct 2018 23:12:45 +0000 (20:12 -0300)
commit8feeddf1f88cb3753b51c894cffea4f11b0036d3
treed64d2be9d494dac65e6bfd029de6b8a86728ddd5
parent8b709c0019244d8554c0799084815146a5ce800a
Only combine `match` if its condition expression fits in a single line

This improves the formatting and reading of code avoiding the
condition expression to be rewrite, if it goes multi line.

Fixes: #3029.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
src/overflow.rs
tests/source/issue-3029.rs [new file with mode: 0644]
tests/target/issue-3029.rs [new file with mode: 0644]