fixup! Preserve and format type aliases in extern blocks

This commit is contained in:
Ayaz Hafiz 2020-05-10 10:11:36 -07:00 committed by Caleb Cartwright
parent 92ab76cfa7
commit 2a8ff209f6

View File

@ -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,