mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Don't use an untyped String for ActiveParam tracking
This commit is contained in:
parent
5cc8ad0c4a
commit
38048c35d8
5 changed files with 44 additions and 24 deletions
|
@ -23,7 +23,7 @@ pub(super) fn ra_fixture(
|
|||
expanded: SyntaxToken,
|
||||
) -> Option<()> {
|
||||
let active_parameter = ActiveParameter::at_token(&sema, expanded)?;
|
||||
if !active_parameter.name.starts_with("ra_fixture") {
|
||||
if !active_parameter.ident().map_or(false, |name| name.text().starts_with("ra_fixture")) {
|
||||
return None;
|
||||
}
|
||||
let value = literal.value()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue