Skip to content

Commit 1e779b2

Browse files
Remove anon struct and union types
1 parent 28beb81 commit 1e779b2

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

src/types.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -951,8 +951,6 @@ impl Rewrite for ast::Ty {
951951
ast::TyKind::Tup(ref items) => {
952952
rewrite_tuple(context, items.iter(), self.span, shape, items.len() == 1)
953953
}
954-
ast::TyKind::AnonStruct(..) => Ok(context.snippet(self.span).to_owned()),
955-
ast::TyKind::AnonUnion(..) => Ok(context.snippet(self.span).to_owned()),
956954
ast::TyKind::Path(ref q_self, ref path) => {
957955
rewrite_path(context, PathContext::Type, q_self, path, shape)
958956
}

tests/target/anonymous-types.rs

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)