From c7b7d7e6664ab677c392155b9a6aec37409f4bb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Sun, 3 Nov 2019 00:19:08 +0200 Subject: Silence some warnings --- crates/ra_tt/src/buffer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_tt') 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> { /// 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) } -- cgit v1.2.3