@@ -1111,15 +1111,15 @@ fn item_trait(w: &mut Writer, it: &clean::Item,
1111
1111
if_ok ! ( write!( w, "\\ {\n " ) ) ;
1112
1112
for m in required. iter ( ) {
1113
1113
if_ok ! ( write!( w, " " ) ) ;
1114
- if_ok ! ( render_method( w, m. item( ) , true ) ) ;
1114
+ if_ok ! ( render_method( w, m. item( ) ) ) ;
1115
1115
if_ok ! ( write!( w, ";\n " ) ) ;
1116
1116
}
1117
1117
if required. len ( ) > 0 && provided. len ( ) > 0 {
1118
1118
if_ok ! ( w. write( "\n " . as_bytes( ) ) ) ;
1119
1119
}
1120
1120
for m in provided. iter ( ) {
1121
1121
if_ok ! ( write!( w, " " ) ) ;
1122
- if_ok ! ( render_method( w, m. item( ) , true ) ) ;
1122
+ if_ok ! ( render_method( w, m. item( ) ) ) ;
1123
1123
if_ok ! ( write!( w, " \\ { ... \\ }\n " ) ) ;
1124
1124
}
1125
1125
if_ok ! ( write!( w, "\\ }" ) ) ;
@@ -1133,7 +1133,7 @@ fn item_trait(w: &mut Writer, it: &clean::Item,
1133
1133
if_ok ! ( write!( w, "<h3 id='{}.{}' class='method'><code>" ,
1134
1134
shortty( m. item( ) ) ,
1135
1135
* m. item( ) . name. get_ref( ) ) ) ;
1136
- if_ok ! ( render_method( w, m. item( ) , false ) ) ;
1136
+ if_ok ! ( render_method( w, m. item( ) ) ) ;
1137
1137
if_ok ! ( write!( w, "</code></h3>" ) ) ;
1138
1138
if_ok ! ( document( w, m. item( ) ) ) ;
1139
1139
Ok ( ( ) )
@@ -1188,32 +1188,27 @@ fn item_trait(w: &mut Writer, it: &clean::Item,
1188
1188
} )
1189
1189
}
1190
1190
1191
- fn render_method ( w : & mut Writer , meth : & clean:: Item ,
1192
- withlink : bool ) -> fmt:: Result {
1191
+ fn render_method ( w : & mut Writer , meth : & clean:: Item ) -> fmt:: Result {
1193
1192
fn fun ( w : & mut Writer , it : & clean:: Item , purity : ast:: Purity ,
1194
- g : & clean:: Generics , selfty : & clean:: SelfTy , d : & clean:: FnDecl ,
1195
- withlink : bool ) -> fmt:: Result {
1196
- write ! ( w, "{}fn {withlink, select,
1197
- true{<a href='\\ #{ty}.{name}'
1198
- class='fnname'>{name}</a>}
1199
- other{<span class='fnname'>{name}</span>}
1200
- }{generics}{decl}" ,
1193
+ g : & clean:: Generics , selfty : & clean:: SelfTy ,
1194
+ d : & clean:: FnDecl ) -> fmt:: Result {
1195
+ write ! ( w, "{}fn <a href='\\ #{ty}.{name}' class='fnname'>{name}</a>\
1196
+ {generics}{decl}",
1201
1197
match purity {
1202
1198
ast:: UnsafeFn => "unsafe " ,
1203
1199
_ => "" ,
1204
1200
} ,
1205
1201
ty = shortty( it) ,
1206
1202
name = it. name. get_ref( ) . as_slice( ) ,
1207
1203
generics = * g,
1208
- decl = Method ( selfty, d) ,
1209
- withlink = if withlink { "true" } else { "false" } )
1204
+ decl = Method ( selfty, d) )
1210
1205
}
1211
1206
match meth. inner {
1212
1207
clean:: TyMethodItem ( ref m) => {
1213
- fun ( w, meth, m. purity , & m. generics , & m. self_ , & m. decl , withlink )
1208
+ fun ( w, meth, m. purity , & m. generics , & m. self_ , & m. decl )
1214
1209
}
1215
1210
clean:: MethodItem ( ref m) => {
1216
- fun ( w, meth, m. purity , & m. generics , & m. self_ , & m. decl , withlink )
1211
+ fun ( w, meth, m. purity , & m. generics , & m. self_ , & m. decl )
1217
1212
}
1218
1213
_ => unreachable ! ( )
1219
1214
}
@@ -1444,7 +1439,7 @@ fn render_impl(w: &mut Writer, i: &clean::Impl,
1444
1439
fn docmeth ( w : & mut Writer , item : & clean:: Item ) -> io:: IoResult < bool > {
1445
1440
if_ok ! ( write!( w, "<h4 id='method.{}' class='method'><code>" ,
1446
1441
* item. name. get_ref( ) ) ) ;
1447
- if_ok ! ( render_method( w, item, false ) ) ;
1442
+ if_ok ! ( render_method( w, item) ) ;
1448
1443
if_ok ! ( write!( w, "</code></h4>\n " ) ) ;
1449
1444
match item. doc_value ( ) {
1450
1445
Some ( s) => {
0 commit comments