@@ -1702,12 +1702,12 @@ fn print_item(cx: &Context, item: &clean::Item, buf: &mut Buffer) {
1702
1702
clean:: TypedefItem ( ref t, _) => item_typedef ( buf, cx, item, t) ,
1703
1703
clean:: MacroItem ( ref m) => item_macro ( buf, cx, item, m) ,
1704
1704
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) ,
1706
1706
clean:: StaticItem ( ref i) | clean:: ForeignStaticItem ( ref i) =>
1707
1707
item_static ( buf, cx, item, i) ,
1708
1708
clean:: ConstantItem ( ref c) => item_constant ( buf, cx, item, c) ,
1709
1709
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) ,
1711
1711
clean:: OpaqueTyItem ( ref e, _) => item_opaque_ty ( buf, cx, item, e) ,
1712
1712
clean:: TraitAliasItem ( ref ta) => item_trait_alias ( buf, cx, item, ta) ,
1713
1713
_ => {
@@ -3665,11 +3665,11 @@ fn print_sidebar(cx: &Context, it: &clean::Item, buffer: &mut Buffer) {
3665
3665
match it. inner {
3666
3666
clean:: StructItem ( ref s) => sidebar_struct ( buffer, it, s) ,
3667
3667
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) ,
3669
3669
clean:: UnionItem ( ref u) => sidebar_union ( buffer, it, u) ,
3670
3670
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 ) ,
3673
3673
clean:: ForeignTypeItem => sidebar_foreign_type ( buffer, it) ,
3674
3674
_ => ( ) ,
3675
3675
}
@@ -4038,15 +4038,15 @@ fn sidebar_trait(buf: &mut Buffer, it: &clean::Item, t: &clean::Trait) {
4038
4038
write ! ( buf, "<div class=\" block items\" >{}</div>" , sidebar)
4039
4039
}
4040
4040
4041
- fn sidebar_primitive ( buf : & mut Buffer , it : & clean:: Item , _p : & clean :: PrimitiveType ) {
4041
+ fn sidebar_primitive ( buf : & mut Buffer , it : & clean:: Item ) {
4042
4042
let sidebar = sidebar_assoc_items ( it) ;
4043
4043
4044
4044
if !sidebar. is_empty ( ) {
4045
4045
write ! ( buf, "<div class=\" block items\" >{}</div>" , sidebar) ;
4046
4046
}
4047
4047
}
4048
4048
4049
- fn sidebar_typedef ( buf : & mut Buffer , it : & clean:: Item , _t : & clean :: Typedef ) {
4049
+ fn sidebar_typedef ( buf : & mut Buffer , it : & clean:: Item ) {
4050
4050
let sidebar = sidebar_assoc_items ( it) ;
4051
4051
4052
4052
if !sidebar. is_empty ( ) {
@@ -4138,7 +4138,7 @@ fn item_ty_to_strs(ty: &ItemType) -> (&'static str, &'static str) {
4138
4138
}
4139
4139
}
4140
4140
4141
- fn sidebar_module ( buf : & mut Buffer , _it : & clean :: Item , items : & [ clean:: Item ] ) {
4141
+ fn sidebar_module ( buf : & mut Buffer , items : & [ clean:: Item ] ) {
4142
4142
let mut sidebar = String :: new ( ) ;
4143
4143
4144
4144
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
4216
4216
document ( w, cx, it)
4217
4217
}
4218
4218
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 ) {
4222
4220
document ( w, cx, it) ;
4223
4221
render_assoc_items ( w, cx, it, it. def_id , AssocItemRender :: All )
4224
4222
}
4225
4223
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 ) {
4229
4225
document ( w, cx, it)
4230
4226
}
4231
4227
0 commit comments