diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-04-23 22:18:41 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-23 22:18:41 +0100 |
commit | 4f0cb81a2e4364994d23474d7738125d1cb56573 (patch) | |
tree | d18603d54ee7714969a449f68dc49a190f0c77aa /crates | |
parent | 189ac4abbf6037419cb195c0a36a179544496ced (diff) | |
parent | dd59237e0ce48adc0f5f459c73a5687ffa748a2a (diff) |
Merge #4110
4110: minor r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_syntax/src/ptr.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/ptr.rs b/crates/ra_syntax/src/ptr.rs index 8d9812d24..ecbfffcf4 100644 --- a/crates/ra_syntax/src/ptr.rs +++ b/crates/ra_syntax/src/ptr.rs | |||
@@ -30,10 +30,6 @@ impl SyntaxNodePtr { | |||
30 | .unwrap_or_else(|| panic!("can't resolve local ptr to SyntaxNode: {:?}", self)) | 30 | .unwrap_or_else(|| panic!("can't resolve local ptr to SyntaxNode: {:?}", self)) |
31 | } | 31 | } |
32 | 32 | ||
33 | // pub fn range(&self) -> TextRange { | ||
34 | // self.range | ||
35 | // } | ||
36 | |||
37 | pub fn cast<N: AstNode>(self) -> Option<AstPtr<N>> { | 33 | pub fn cast<N: AstNode>(self) -> Option<AstPtr<N>> { |
38 | if !N::can_cast(self.kind) { | 34 | if !N::can_cast(self.kind) { |
39 | return None; | 35 | return None; |