forked from rust-lang/rustfmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wrap
else
to next line if let-else
pattern is multi-lined
This rule wasn't explicity stated in the style guide so it was missed, but luckily we caught it during testing.
- Loading branch information
1 parent
7b4e8a6
commit 1de65a2
Showing
4 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,8 @@ fn main() { | |
upper, | ||
step, | ||
range: _, | ||
}) = slice.as_ref() else { | ||
}) = slice.as_ref() | ||
else { | ||
return; | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,8 @@ fn main() { | |
upper, | ||
step, | ||
range: _, | ||
}) = slice.as_ref() else { | ||
}) = slice.as_ref() | ||
else { | ||
return; | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,8 @@ fn main() { | |
upper, | ||
step, | ||
range: _, | ||
}) = slice.as_ref() else { | ||
}) = slice.as_ref() | ||
else { | ||
return; | ||
}; | ||
|
||
|