mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
unnecessary paranthesis
This commit is contained in:
parent
54ea251bd4
commit
824f413d75
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue