Skip to content

Commit 5c81741

Browse files
committed
Minor refactoring
1 parent 261d325 commit 5c81741

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/items.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,6 @@ impl<'a> FmtVisitor<'a> {
533533
}
534534

535535
let context = self.get_context();
536-
let indent = self.block_indent;
537536
// 1 = ','
538537
let shape = self.shape().sub_width(1)?;
539538
let attrs_str = field.node.attrs.rewrite(&context, shape)?;
@@ -550,7 +549,7 @@ impl<'a> FmtVisitor<'a> {
550549
format_struct(
551550
&context,
552551
&StructParts::from_variant(field),
553-
indent,
552+
self.block_indent,
554553
Some(one_line_width),
555554
)?
556555
}

0 commit comments

Comments
 (0)