unnecessary paranthesis

This commit is contained in:
Edwin Cheng 2019-06-03 01:05:58 +08:00
parent 54ea251bd4
commit 824f413d75

@ -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),