Fix the extension method

This commit is contained in:
Kirill Bulatov 2020-05-01 23:18:00 +03:00
parent 89e1f97515
commit c4b32d1534

View file

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