diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-20 22:23:50 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-20 22:23:50 +0000 |
commit | be3dc673e2f00eaa7cfbf4727cc69032ed0b6179 (patch) | |
tree | d5566d0f3cc77835aab5770fa9f08b0c0d48f1b1 /crates/ide/src/syntax_highlighting | |
parent | 104a19853e0d5560a21e6c6a31961ca592be1032 (diff) | |
parent | 38048c35d800230d3e5a79041186366dd0ef44ae (diff) |
Merge #8125
8125: Don't use an untyped String for ActiveParam tracking r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide/src/syntax_highlighting')
-rw-r--r-- | crates/ide/src/syntax_highlighting/inject.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/syntax_highlighting/inject.rs b/crates/ide/src/syntax_highlighting/inject.rs index 00493a6b5..8e0940184 100644 --- a/crates/ide/src/syntax_highlighting/inject.rs +++ b/crates/ide/src/syntax_highlighting/inject.rs | |||
@@ -23,7 +23,7 @@ pub(super) fn ra_fixture( | |||
23 | expanded: SyntaxToken, | 23 | expanded: SyntaxToken, |
24 | ) -> Option<()> { | 24 | ) -> Option<()> { |
25 | let active_parameter = ActiveParameter::at_token(&sema, expanded)?; | 25 | let active_parameter = ActiveParameter::at_token(&sema, expanded)?; |
26 | if !active_parameter.name.starts_with("ra_fixture") { | 26 | if !active_parameter.ident().map_or(false, |name| name.text().starts_with("ra_fixture")) { |
27 | return None; | 27 | return None; |
28 | } | 28 | } |
29 | let value = literal.value()?; | 29 | let value = literal.value()?; |