Align dots in chained expressions
This commit is contained in:
parent
95ef9dedb4
commit
a9814149c9
8 changed files with 134 additions and 130 deletions
|
@ -288,11 +288,10 @@ impl<'a> FmtVisitor<'a> {
|
|||
if utils::contains_skip(attrs) {
|
||||
true
|
||||
} else {
|
||||
let rewrite = attrs
|
||||
.rewrite(&self.get_context(),
|
||||
self.config.max_width - self.block_indent,
|
||||
self.block_indent)
|
||||
.unwrap();
|
||||
let rewrite = attrs.rewrite(&self.get_context(),
|
||||
self.config.max_width - self.block_indent,
|
||||
self.block_indent)
|
||||
.unwrap();
|
||||
self.buffer.push_str(&rewrite);
|
||||
let last = attrs.last().unwrap();
|
||||
self.last_pos = last.span.hi;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue