Format match expressions properly when they appear on an overflowing line.
This commit is contained in:
parent
97e92b35cc
commit
a5f8b37eeb
4 changed files with 35 additions and 7 deletions
|
@ -338,6 +338,7 @@ impl<'a> FmtVisitor<'a> {
|
|||
codemap: self.codemap,
|
||||
config: self.config,
|
||||
block_indent: self.block_indent,
|
||||
overflow_indent: 0,
|
||||
};
|
||||
// 1 = ";"
|
||||
match vp.rewrite(&context, self.config.max_width - offset - 1, offset) {
|
||||
|
@ -369,6 +370,7 @@ impl<'a> FmtVisitor<'a> {
|
|||
codemap: self.codemap,
|
||||
config: self.config,
|
||||
block_indent: self.block_indent,
|
||||
overflow_indent: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue