1
Fork 0

Format match expressions properly when they appear on an overflowing line.

This commit is contained in:
Nick Cameron 2015-09-02 14:29:47 +12:00
parent 97e92b35cc
commit a5f8b37eeb
4 changed files with 35 additions and 7 deletions

View file

@ -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,
}
}
}