diff options
author | Edwin Cheng <[email protected]> | 2019-06-02 18:05:58 +0100 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-06-02 18:05:58 +0100 |
commit | 824f413d75b68e950726dc17c4e7cc3d3f241eda (patch) | |
tree | 09c0387eb171fc5bc882038e16f826d5214b5eac /crates/ra_tt | |
parent | 54ea251bd40bec06c28e635371588e83cdacca9b (diff) |
unnecessary paranthesis
Diffstat (limited to 'crates/ra_tt')
-rw-r--r-- | crates/ra_tt/src/buffer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_tt/src/buffer.rs b/crates/ra_tt/src/buffer.rs index 8bc6390f3..995c9f90b 100644 --- a/crates/ra_tt/src/buffer.rs +++ b/crates/ra_tt/src/buffer.rs | |||
@@ -141,7 +141,7 @@ impl<'a> Cursor<'a> { | |||
141 | } | 141 | } |
142 | 142 | ||
143 | /// If the cursor is pointing at a `TokenTree`, returns it | 143 | /// If the cursor is pointing at a `TokenTree`, returns it |
144 | pub fn token_tree(self) -> Option<(&'a TokenTree)> { | 144 | pub fn token_tree(self) -> Option<&'a TokenTree> { |
145 | match self.entry() { | 145 | match self.entry() { |
146 | Some(Entry::Leaf(tt)) => Some(tt), | 146 | Some(Entry::Leaf(tt)) => Some(tt), |
147 | Some(Entry::Subtree(tt, _)) => Some(tt), | 147 | Some(Entry::Subtree(tt, _)) => Some(tt), |