mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
unnecessary paranthesis
This commit is contained in:
parent
54ea251bd4
commit
824f413d75
@ -141,7 +141,7 @@ impl<'a> Cursor<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// If the cursor is pointing at a `TokenTree`, returns it
|
/// 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() {
|
match self.entry() {
|
||||||
Some(Entry::Leaf(tt)) => Some(tt),
|
Some(Entry::Leaf(tt)) => Some(tt),
|
||||||
Some(Entry::Subtree(tt, _)) => Some(tt),
|
Some(Entry::Subtree(tt, _)) => Some(tt),
|
||||||
|
Loading…
Reference in New Issue
Block a user