Skip to content

Commit a427a14

Browse files
committed
fixup! Preserve and format type aliases in extern blocks
1 parent 43b5d58 commit a427a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rustfmt-core/rustfmt-lib/src/items.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3103,7 +3103,7 @@ impl Rewrite for ast::ForeignItem {
31033103
// FIXME: this may be a faulty span from libsyntax.
31043104
let span = mk_sp(self.span.lo(), self.span.hi() - BytePos(1));
31053105

3106-
let item_str: String = match self.kind {
3106+
let item_str = match self.kind {
31073107
ast::ForeignItemKind::Fn(_, ref fn_sig, ref generics, _) => rewrite_fn_base(
31083108
context,
31093109
shape.indent,

0 commit comments

Comments
 (0)