aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-04-23 22:18:41 +0100
committerGitHub <[email protected]>2020-04-23 22:18:41 +0100
commit4f0cb81a2e4364994d23474d7738125d1cb56573 (patch)
treed18603d54ee7714969a449f68dc49a190f0c77aa
parent189ac4abbf6037419cb195c0a36a179544496ced (diff)
parentdd59237e0ce48adc0f5f459c73a5687ffa748a2a (diff)
Merge #4110
4110: minor r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
-rw-r--r--crates/ra_syntax/src/ptr.rs4
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;