]> git.lizzy.rs Git - rust.git/commit
Remove `except` in suspicious_else_formatting
authorPhilipp Hansch <dev@phansch.net>
Sun, 14 Apr 2019 09:04:41 +0000 (11:04 +0200)
committerPhilipp Hansch <dev@phansch.net>
Sun, 14 Apr 2019 09:04:41 +0000 (11:04 +0200)
commit96c34e85c4bc23d153ebe4db5e24beba92d4d174
tree16e461a180a18ec6c6de45b90909a409beb8d677
parentd516925ec8ff4d39e32830442959fad16407e87e
Remove `except` in suspicious_else_formatting

This was causing two different ICEs in #3741.
The first was fixed in #3925.

The second one is fixed with this commit: We just don't `expect`
anymore. If the snippet doesn't contain an `else`, we stop emitting the
lint because it's not a suspiciously formatted else anyway.
clippy_lints/src/formatting.rs