diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-19 18:57:33 +0100 |
---|---|---|
committer | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-19 18:57:33 +0100 |
commit | fabd4c4304e387ed6bcc29b39d1593666c4cbec9 (patch) | |
tree | b18a0be7255bb070dd7e2ae3b5687bc5f35f0d41 /crates/ra_syntax/src/syntax_node.rs | |
parent | d4ffbf2ae092b313b3c750adad398f3aa6fb209b (diff) | |
parent | 002529937075bd69d7f71483d798d6e4f43d1de9 (diff) |
Merge #1556
1556: sane indexing in text r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/syntax_node.rs')
-rw-r--r-- | crates/ra_syntax/src/syntax_node.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/syntax_node.rs b/crates/ra_syntax/src/syntax_node.rs index 62e0967b7..8fe9e5b4e 100644 --- a/crates/ra_syntax/src/syntax_node.rs +++ b/crates/ra_syntax/src/syntax_node.rs | |||
@@ -297,7 +297,6 @@ fn to_green_element(element: SyntaxElement) -> rowan::GreenElement { | |||
297 | #[derive(Clone, PartialEq, Eq, Hash)] | 297 | #[derive(Clone, PartialEq, Eq, Hash)] |
298 | pub struct SyntaxToken(pub(crate) rowan::cursor::SyntaxToken); | 298 | pub struct SyntaxToken(pub(crate) rowan::cursor::SyntaxToken); |
299 | 299 | ||
300 | //FIXME: always output text | ||
301 | impl fmt::Debug for SyntaxToken { | 300 | impl fmt::Debug for SyntaxToken { |
302 | fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { | 301 | fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { |
303 | write!(fmt, "{:?}@{:?}", self.kind(), self.range())?; | 302 | write!(fmt, "{:?}@{:?}", self.kind(), self.range())?; |