ast::ItemKind::Fn: use ast::FnSig

This commit is contained in:
Mazdak Farrokhzad
2019-11-07 13:33:37 +01:00
parent 2cd48e8a3b
commit b4c6abcf9e
16 changed files with 51 additions and 63 deletions

View File

@@ -1199,11 +1199,11 @@ impl<'a> State<'a> {
self.s.word(";");
self.end(); // end the outer cbox
}
ast::ItemKind::Fn(ref decl, header, ref param_names, ref body) => {
ast::ItemKind::Fn(ref sig, ref param_names, ref body) => {
self.head("");
self.print_fn(
decl,
header,
&sig.decl,
sig.header,
Some(item.ident),
param_names,
&item.vis