From 824f413d75b68e950726dc17c4e7cc3d3f241eda Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Mon, 3 Jun 2019 01:05:58 +0800 Subject: unnecessary paranthesis --- crates/ra_tt/src/buffer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_tt') 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> { } /// If the cursor is pointing at a `TokenTree`, returns it - pub fn token_tree(self) -> Option<(&'a TokenTree)> { + pub fn token_tree(self) -> Option<&'a TokenTree> { match self.entry() { Some(Entry::Leaf(tt)) => Some(tt), Some(Entry::Subtree(tt, _)) => Some(tt), -- cgit v1.2.3