Only show associated consts from inherent impls in sidebar
This commit is contained in:
parent
e50ff9b452
commit
c8ab63b30f
2 changed files with 25 additions and 4 deletions
|
@ -1987,6 +1987,7 @@ fn sidebar_assoc_items(cx: &Context<'_>, out: &mut Buffer, it: &clean::Item) {
|
|||
let used_links_bor = &mut used_links;
|
||||
let mut assoc_consts = v
|
||||
.iter()
|
||||
.filter(|i| i.inner_impl().trait_.is_none())
|
||||
.flat_map(|i| get_associated_constants(i.inner_impl(), used_links_bor))
|
||||
.collect::<Vec<_>>();
|
||||
if !assoc_consts.is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue