Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/expr_store/body.rs')
-rw-r--r--crates/hir-def/src/expr_store/body.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-def/src/expr_store/body.rs b/crates/hir-def/src/expr_store/body.rs
index 0c8320369f..6be3e49a70 100644
--- a/crates/hir-def/src/expr_store/body.rs
+++ b/crates/hir-def/src/expr_store/body.rs
@@ -133,7 +133,7 @@ impl Body {
expr: ExprId,
edition: Edition,
) -> String {
- pretty::print_expr_hir(db, self, owner, expr, edition)
+ pretty::print_expr_hir(db, self, owner.into(), expr, edition)
}
pub fn pretty_print_pat(
@@ -144,7 +144,7 @@ impl Body {
oneline: bool,
edition: Edition,
) -> String {
- pretty::print_pat_hir(db, self, owner, pat, oneline, edition)
+ pretty::print_pat_hir(db, self, owner.into(), pat, oneline, edition)
}
}