mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
Silence some warnings
This commit is contained in:
parent
151efb2198
commit
c7b7d7e666
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue