diff options
author | Laurențiu Nicola <[email protected]> | 2019-11-02 22:19:08 +0000 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2019-11-02 22:19:08 +0000 |
commit | c7b7d7e6664ab677c392155b9a6aec37409f4bb9 (patch) | |
tree | bbd4ee52b766bcbbcdd13c9d6aea6407902e072f /crates/ra_tt | |
parent | 151efb2198e74c994fec255b8f78c62900989544 (diff) |
Silence some warnings
Diffstat (limited to 'crates/ra_tt')
-rw-r--r-- | crates/ra_tt/src/buffer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_tt/src/buffer.rs b/crates/ra_tt/src/buffer.rs index ef3f2323c..14b3f707d 100644 --- a/crates/ra_tt/src/buffer.rs +++ b/crates/ra_tt/src/buffer.rs | |||
@@ -111,7 +111,7 @@ impl<'a> Cursor<'a> { | |||
111 | 111 | ||
112 | /// If the cursor is pointing at the end of a subtree, returns | 112 | /// If the cursor is pointing at the end of a subtree, returns |
113 | /// the parent subtree | 113 | /// the parent subtree |
114 | pub fn end(self) -> Option<(&'a Subtree)> { | 114 | pub fn end(self) -> Option<&'a Subtree> { |
115 | match self.entry() { | 115 | match self.entry() { |
116 | Some(Entry::End(Some(ptr))) => { | 116 | Some(Entry::End(Some(ptr))) => { |
117 | let idx = ptr.1; | 117 | let idx = ptr.1; |
@@ -127,7 +127,7 @@ impl<'a> Cursor<'a> { | |||
127 | } | 127 | } |
128 | } | 128 | } |
129 | 129 | ||
130 | fn entry(self) -> Option<(&'a Entry<'a>)> { | 130 | fn entry(self) -> Option<&'a Entry<'a>> { |
131 | self.buffer.entry(&self.ptr) | 131 | self.buffer.entry(&self.ptr) |
132 | } | 132 | } |
133 | 133 | ||