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_syntax/src/ast/generated.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'crates/ra_syntax/src/ast/generated.rs') diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index 90480b6ca..7f91417c5 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs @@ -3134,8 +3134,11 @@ impl AstNode for TryBlockExpr { &self.syntax } } -impl ast::TryBlockBodyOwner for TryBlockExpr {} -impl TryBlockExpr {} +impl TryBlockExpr { + pub fn block(&self) -> Option { + AstChildren::new(&self.syntax).next() + } +} #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub struct TryExpr { pub(crate) syntax: SyntaxNode, -- cgit v1.2.3