Skip to content

Commit

Permalink
fixup! Preserve and format type aliases in extern blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
ayazhafiz authored and calebcartwright committed Oct 2, 2020
1 parent 92ab76c commit 2a8ff20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/items.rs
Expand Up @@ -3059,7 +3059,7 @@ impl Rewrite for ast::ForeignItem {
// FIXME: this may be a faulty span from libsyntax.
let span = mk_sp(self.span.lo(), self.span.hi() - BytePos(1));

let item_str: String = match self.kind {
let item_str = match self.kind {
ast::ForeignItemKind::Fn(_, ref fn_sig, ref generics, _) => rewrite_fn_base(
context,
shape.indent,
Expand Down

0 comments on commit 2a8ff20

Please sign in to comment.