1
Fork 0

Get rid of clean::TyMethod

It's the same as clean::Function.
This commit is contained in:
Joshua Nelson 2020-11-16 22:53:10 -05:00
parent 9b2b02a840
commit b3f9795cbb
3 changed files with 4 additions and 14 deletions

View file

@ -3752,8 +3752,7 @@ fn render_impl(
(true, " hidden")
};
match item.kind {
clean::MethodItem(clean::Method { .. })
| clean::TyMethodItem(clean::TyMethod { .. }) => {
clean::MethodItem(_) | clean::TyMethodItem(_) => {
// Only render when the method is not static or we allow static methods
if render_method_item {
let id = cx.derive_id(format!("{}.{}", item_type, name));