Skip to content

Commit 2a8ff20

Browse files
ayazhafizcalebcartwright
authored andcommitted
fixup! Preserve and format type aliases in extern blocks
1 parent 92ab76c commit 2a8ff20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/items.rs

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

3062-
let item_str: String = match self.kind {
3062+
let item_str = match self.kind {
30633063
ast::ForeignItemKind::Fn(_, ref fn_sig, ref generics, _) => rewrite_fn_base(
30643064
context,
30653065
shape.indent,

0 commit comments

Comments
 (0)