mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-14 00:47:18 +00:00
Fix the extension method
This commit is contained in:
parent
89e1f97515
commit
c4b32d1534
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ impl ast::TokenTree {
|
|||
|
||||
pub fn right_delimiter_token(&self) -> Option<SyntaxToken> {
|
||||
self.syntax().last_child_or_token()?.into_token().filter(|it| match it.kind() {
|
||||
T!['{'] | T!['('] | T!['['] => true,
|
||||
T!['}'] | T![')'] | T![']'] => true,
|
||||
_ => false,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue