@@ -4579,12 +4579,13 @@ fn get_methods(
4579
4579
i : & clean:: Impl ,
4580
4580
for_deref : bool ,
4581
4581
used_links : & mut FxHashSet < String > ,
4582
+ deref_mut : bool ,
4582
4583
) -> Vec < String > {
4583
4584
i. items . iter ( ) . filter_map ( |item| {
4584
4585
match item. name {
4585
4586
// Maybe check with clean::Visibility::Public as well?
4586
4587
Some ( ref name) if !name. is_empty ( ) && item. visibility . is_some ( ) && item. is_method ( ) => {
4587
- if !for_deref || should_render_item ( item, false ) {
4588
+ if !for_deref || should_render_item ( item, deref_mut ) {
4588
4589
Some ( format ! ( "<a href=\" #{}\" >{}</a>" ,
4589
4590
get_next_url( used_links, format!( "method.{}" , name) ) ,
4590
4591
name) )
@@ -4625,7 +4626,7 @@ fn sidebar_assoc_items(it: &clean::Item) -> String {
4625
4626
. filter ( |i| i. inner_impl ( ) . trait_ . is_none ( ) )
4626
4627
. flat_map ( move |i| get_methods ( i. inner_impl ( ) ,
4627
4628
false ,
4628
- & mut used_links_bor. borrow_mut ( ) ) )
4629
+ & mut used_links_bor. borrow_mut ( ) , false ) )
4629
4630
. collect :: < Vec < _ > > ( ) ;
4630
4631
// We want links' order to be reproducible so we don't use unstable sort.
4631
4632
ret. sort ( ) ;
@@ -4659,7 +4660,8 @@ fn sidebar_assoc_items(it: &clean::Item) -> String {
4659
4660
. filter ( |i| i. inner_impl ( ) . trait_ . is_none ( ) )
4660
4661
. flat_map ( |i| get_methods ( i. inner_impl ( ) ,
4661
4662
true ,
4662
- & mut used_links) )
4663
+ & mut used_links,
4664
+ true ) )
4663
4665
. collect :: < Vec < _ > > ( ) ;
4664
4666
// We want links' order to be reproducible so we don't use unstable sort.
4665
4667
ret. sort ( ) ;
0 commit comments