Skip to content

Commit 28b6a30

Browse files
jhggmatklad
andauthored
Update crates/ide/src/syntax_highlighting/highlight.rs
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
1 parent 0eb1afd commit 28b6a30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/ide/src/syntax_highlighting/highlight.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@ fn highlight_def(db: &RootDatabase, krate: Option<hir::Crate>, def: Definition)
489489
let ty = local.ty(db);
490490
if local.is_mut(db) || ty.is_mutable_reference() {
491491
h |= HlMod::Mutable;
492-
} else if local.is_ref(db) || ty.is_reference() {
492+
}
493+
if local.is_ref(db) || ty.is_reference() {
493494
h |= HlMod::Reference;
494495
}
495496
if ty.as_callable(db).is_some() || ty.impls_fnonce(db) {

0 commit comments

Comments
 (0)