From f377b94628a265cb5335fbe4594a47cc8ddc9e2c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 2 Sep 2019 19:45:41 +0300 Subject: remove useless trait --- crates/ra_hir/src/expr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir') diff --git a/crates/ra_hir/src/expr.rs b/crates/ra_hir/src/expr.rs index 7cdc7555c..c7530849b 100644 --- a/crates/ra_hir/src/expr.rs +++ b/crates/ra_hir/src/expr.rs @@ -7,7 +7,7 @@ use ra_arena::{impl_arena_id, map::ArenaMap, Arena, RawId}; use ra_syntax::{ ast::{ self, ArgListOwner, ArrayExprKind, LiteralKind, LoopBodyOwner, NameOwner, - TryBlockBodyOwner, TypeAscriptionOwner, + TypeAscriptionOwner, }, AstNode, AstPtr, SyntaxNodePtr, }; @@ -640,7 +640,7 @@ where self.alloc_expr(Expr::If { condition, then_branch, else_branch }, syntax_ptr) } ast::Expr::TryBlockExpr(e) => { - let body = self.collect_block_opt(e.try_body()); + let body = self.collect_block_opt(e.block()); self.alloc_expr(Expr::TryBlock { body }, syntax_ptr) } ast::Expr::BlockExpr(e) => self.collect_block_opt(e.block()), -- cgit v1.2.3