From b3f9795cbb498ad75bcfa0c287774a936c09dd8d Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Mon, 16 Nov 2020 22:53:10 -0500 Subject: Get rid of clean::TyMethod It's the same as clean::Function. --- src/librustdoc/html/render/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/librustdoc/html/render') diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 78822e678d4..4c71906f586 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -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)); -- cgit 1.4.1-3-g733a5