Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/expr_store/pretty.rs')
| -rw-r--r-- | crates/hir-def/src/expr_store/pretty.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir-def/src/expr_store/pretty.rs b/crates/hir-def/src/expr_store/pretty.rs index 25e5711d1e..24ad23dbac 100644 --- a/crates/hir-def/src/expr_store/pretty.rs +++ b/crates/hir-def/src/expr_store/pretty.rs @@ -92,12 +92,12 @@ pub fn print_body_hir( }; if let DefWithBodyId::FunctionId(_) = owner { p.buf.push('('); - if let Some(self_param) = body.self_param() { - p.print_binding(self_param); + if let Some(self_param) = body.self_param { + p.print_binding(self_param.formal); p.buf.push_str(", "); } body.params.iter().for_each(|param| { - p.print_pat(*param); + p.print_pat(param.formal); p.buf.push_str(", "); }); // remove the last ", " in param list |