Minor refactoring

This commit is contained in:
topecongiro 2017-11-27 20:57:06 +09:00
parent 261d325e15
commit 5c81741733

View file

@ -533,7 +533,6 @@ impl<'a> FmtVisitor<'a> {
}
let context = self.get_context();
let indent = self.block_indent;
// 1 = ','
let shape = self.shape().sub_width(1)?;
let attrs_str = field.node.attrs.rewrite(&context, shape)?;
@ -550,7 +549,7 @@ impl<'a> FmtVisitor<'a> {
format_struct(
&context,
&StructParts::from_variant(field),
indent,
self.block_indent,
Some(one_line_width),
)?
}