mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +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> {
|
pub fn right_delimiter_token(&self) -> Option<SyntaxToken> {
|
||||||
self.syntax().last_child_or_token()?.into_token().filter(|it| match it.kind() {
|
self.syntax().last_child_or_token()?.into_token().filter(|it| match it.kind() {
|
||||||
T!['{'] | T!['('] | T!['['] => true,
|
T!['}'] | T![')'] | T![']'] => true,
|
||||||
_ => false,
|
_ => false,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue