Skip to content

Commit 4e3ed18

Browse files
committed
review comment: Remove AST AnonTy
1 parent 2791cc3 commit 4e3ed18

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/types.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -839,9 +839,7 @@ impl Rewrite for ast::Ty {
839839
})
840840
}
841841
ast::TyKind::CVarArgs => Some("...".to_owned()),
842-
ast::TyKind::AnonEnum(_) | ast::TyKind::Err => {
843-
Some(context.snippet(self.span).to_owned())
844-
}
842+
ast::TyKind::Err => Some(context.snippet(self.span).to_owned()),
845843
ast::TyKind::Typeof(ref anon_const) => rewrite_call(
846844
context,
847845
"typeof",

0 commit comments

Comments
 (0)