This commit is contained in:
Joshua Warner 2021-12-22 20:37:53 -08:00
parent f170509bf1
commit 22e2545fd6
21 changed files with 268 additions and 413 deletions

View file

@ -516,7 +516,9 @@ fn fmt_when<'a, 'buf>(
let (first_pattern, rest) = patterns.split_first().unwrap();
let is_multiline = match rest.last() {
None => false,
Some(last_pattern) => first_pattern.region.start().line != last_pattern.region.end().line,
Some(last_pattern) => {
first_pattern.region.start().line != last_pattern.region.end().line
}
};
fmt_pattern(