Skip to content

Commit b67bdb5

Browse files
Re-order correctly the sections in the sidebar
1 parent 5949391 commit b67bdb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/render.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4338,6 +4338,8 @@ fn sidebar_trait(buf: &mut Buffer, it: &clean::Item, t: &clean::Trait) {
43384338
}
43394339
}
43404340

4341+
sidebar.push_str(&sidebar_assoc_items(it));
4342+
43414343
sidebar.push_str("<a class=\"sidebar-title\" href=\"#implementors\">Implementors</a>");
43424344
if t.auto {
43434345
sidebar.push_str(
@@ -4346,8 +4348,6 @@ fn sidebar_trait(buf: &mut Buffer, it: &clean::Item, t: &clean::Trait) {
43464348
);
43474349
}
43484350

4349-
sidebar.push_str(&sidebar_assoc_items(it));
4350-
43514351
write!(buf, "<div class=\"block items\">{}</div>", sidebar)
43524352
}
43534353

0 commit comments

Comments
 (0)