diff --git a/src/types.rs b/src/types.rs index cd2582e66be..aaef80f4aef 100644 --- a/src/types.rs +++ b/src/types.rs @@ -806,8 +806,8 @@ fn rewrite(&self, context: &RewriteContext<'_>, shape: Shape) -> Option ast::TyKind::Tup(ref items) => { rewrite_tuple(context, items.iter(), self.span, shape, items.len() == 1) } - ast::TyKind::AnonStruct(_) => Some(context.snippet(self.span).to_owned()), - ast::TyKind::AnonUnion(_) => Some(context.snippet(self.span).to_owned()), + ast::TyKind::AnonStruct(..) => Some(context.snippet(self.span).to_owned()), + ast::TyKind::AnonUnion(..) => Some(context.snippet(self.span).to_owned()), ast::TyKind::Path(ref q_self, ref path) => { rewrite_path(context, PathContext::Type, q_self, path, shape) }