Attach the db in one more place in highlighting

This commit is contained in:
Chayim Refael Friedman 2025-08-28 01:25:09 +03:00
parent 968fc01fa6
commit 9f7dd01bef

View file

@ -26,7 +26,8 @@ pub(super) fn ra_fixture(
literal: &ast::String,
expanded: &ast::String,
) -> Option<()> {
let active_parameter = ActiveParameter::at_token(sema, expanded.syntax().clone())?;
let active_parameter =
salsa::attach(sema.db, || ActiveParameter::at_token(sema, expanded.syntax().clone()))?;
let has_rust_fixture_attr = active_parameter.attrs().is_some_and(|attrs| {
attrs.filter_map(|attr| attr.as_simple_path()).any(|path| {
path.segments()