Skip to content

Commit cac7e5f

Browse files
Remove unused arguments
1 parent 53acfc3 commit cac7e5f

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

src/librustdoc/html/render.rs

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,12 +1702,12 @@ fn print_item(cx: &Context, item: &clean::Item, buf: &mut Buffer) {
17021702
clean::TypedefItem(ref t, _) => item_typedef(buf, cx, item, t),
17031703
clean::MacroItem(ref m) => item_macro(buf, cx, item, m),
17041704
clean::ProcMacroItem(ref m) => item_proc_macro(buf, cx, item, m),
1705-
clean::PrimitiveItem(ref p) => item_primitive(buf, cx, item, p),
1705+
clean::PrimitiveItem(_) => item_primitive(buf, cx, item),
17061706
clean::StaticItem(ref i) | clean::ForeignStaticItem(ref i) =>
17071707
item_static(buf, cx, item, i),
17081708
clean::ConstantItem(ref c) => item_constant(buf, cx, item, c),
17091709
clean::ForeignTypeItem => item_foreign_type(buf, cx, item),
1710-
clean::KeywordItem(ref k) => item_keyword(buf, cx, item, k),
1710+
clean::KeywordItem(_) => item_keyword(buf, cx, item),
17111711
clean::OpaqueTyItem(ref e, _) => item_opaque_ty(buf, cx, item, e),
17121712
clean::TraitAliasItem(ref ta) => item_trait_alias(buf, cx, item, ta),
17131713
_ => {
@@ -3665,11 +3665,11 @@ fn print_sidebar(cx: &Context, it: &clean::Item, buffer: &mut Buffer) {
36653665
match it.inner {
36663666
clean::StructItem(ref s) => sidebar_struct(buffer, it, s),
36673667
clean::TraitItem(ref t) => sidebar_trait(buffer, it, t),
3668-
clean::PrimitiveItem(ref p) => sidebar_primitive(buffer, it, p),
3668+
clean::PrimitiveItem(_) => sidebar_primitive(buffer, it),
36693669
clean::UnionItem(ref u) => sidebar_union(buffer, it, u),
36703670
clean::EnumItem(ref e) => sidebar_enum(buffer, it, e),
3671-
clean::TypedefItem(ref t, _) => sidebar_typedef(buffer, it, t),
3672-
clean::ModuleItem(ref m) => sidebar_module(buffer, it, &m.items),
3671+
clean::TypedefItem(_, _) => sidebar_typedef(buffer, it),
3672+
clean::ModuleItem(ref m) => sidebar_module(buffer, &m.items),
36733673
clean::ForeignTypeItem => sidebar_foreign_type(buffer, it),
36743674
_ => (),
36753675
}
@@ -4038,15 +4038,15 @@ fn sidebar_trait(buf: &mut Buffer, it: &clean::Item, t: &clean::Trait) {
40384038
write!(buf, "<div class=\"block items\">{}</div>", sidebar)
40394039
}
40404040

4041-
fn sidebar_primitive(buf: &mut Buffer, it: &clean::Item, _p: &clean::PrimitiveType) {
4041+
fn sidebar_primitive(buf: &mut Buffer, it: &clean::Item) {
40424042
let sidebar = sidebar_assoc_items(it);
40434043

40444044
if !sidebar.is_empty() {
40454045
write!(buf, "<div class=\"block items\">{}</div>", sidebar);
40464046
}
40474047
}
40484048

4049-
fn sidebar_typedef(buf: &mut Buffer, it: &clean::Item, _t: &clean::Typedef) {
4049+
fn sidebar_typedef(buf: &mut Buffer, it: &clean::Item) {
40504050
let sidebar = sidebar_assoc_items(it);
40514051

40524052
if !sidebar.is_empty() {
@@ -4138,7 +4138,7 @@ fn item_ty_to_strs(ty: &ItemType) -> (&'static str, &'static str) {
41384138
}
41394139
}
41404140

4141-
fn sidebar_module(buf: &mut Buffer, _it: &clean::Item, items: &[clean::Item]) {
4141+
fn sidebar_module(buf: &mut Buffer, items: &[clean::Item]) {
41424142
let mut sidebar = String::new();
41434143

41444144
if items.iter().any(|it| it.type_() == ItemType::ExternCrate ||
@@ -4216,16 +4216,12 @@ fn item_proc_macro(w: &mut Buffer, cx: &Context, it: &clean::Item, m: &clean::Pr
42164216
document(w, cx, it)
42174217
}
42184218

4219-
fn item_primitive(w: &mut Buffer, cx: &Context,
4220-
it: &clean::Item,
4221-
_p: &clean::PrimitiveType) {
4219+
fn item_primitive(w: &mut Buffer, cx: &Context, it: &clean::Item) {
42224220
document(w, cx, it);
42234221
render_assoc_items(w, cx, it, it.def_id, AssocItemRender::All)
42244222
}
42254223

4226-
fn item_keyword(w: &mut Buffer, cx: &Context,
4227-
it: &clean::Item,
4228-
_p: &str) {
4224+
fn item_keyword(w: &mut Buffer, cx: &Context, it: &clean::Item) {
42294225
document(w, cx, it)
42304226
}
42314227

0 commit comments

Comments
 (0)