diff --git a/crates/ra_tt/src/buffer.rs b/crates/ra_tt/src/buffer.rs index ef3f2323c9..14b3f707df 100644 --- a/crates/ra_tt/src/buffer.rs +++ b/crates/ra_tt/src/buffer.rs @@ -111,7 +111,7 @@ impl<'a> Cursor<'a> { /// If the cursor is pointing at the end of a subtree, returns /// the parent subtree - pub fn end(self) -> Option<(&'a Subtree)> { + pub fn end(self) -> Option<&'a Subtree> { match self.entry() { Some(Entry::End(Some(ptr))) => { let idx = ptr.1; @@ -127,7 +127,7 @@ impl<'a> Cursor<'a> { } } - fn entry(self) -> Option<(&'a Entry<'a>)> { + fn entry(self) -> Option<&'a Entry<'a>> { self.buffer.entry(&self.ptr) }