提交 705dec11 编写于 作者: N Noah Lev

rustdoc: Replace wildcard with explicit pattern

This simplifies the code and future-proofs it against changes to
`Variant`.
上级 537b82cf
......@@ -59,7 +59,7 @@ fn fold_inner_recur(&mut self, kind: ItemKind) -> ItemKind {
let fields = fields.into_iter().filter_map(|x| self.fold_item(x)).collect();
VariantItem(Variant::Tuple(fields))
}
i => VariantItem(i),
Variant::CLike => VariantItem(Variant::CLike),
}
}
x => x,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册