diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-11-16 22:53:10 -0500 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-11-16 22:53:10 -0500 |
| commit | b3f9795cbb498ad75bcfa0c287774a936c09dd8d (patch) | |
| tree | 353c39f254a02d1cd5207c0d52590315c811efe3 /src/librustdoc/html | |
| parent | 9b2b02a840f358bcadef5c3ae861d2852da20b3d (diff) | |
| download | rust-b3f9795cbb498ad75bcfa0c287774a936c09dd8d.tar.gz rust-b3f9795cbb498ad75bcfa0c287774a936c09dd8d.zip | |
Get rid of clean::TyMethod
It's the same as clean::Function.
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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)); |
