Skip to content

Commit 19b1d50

Browse files
committed
match style
1 parent 44726b6 commit 19b1d50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/ide/src/syntax_highlighting/highlight.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,10 @@ fn highlight_def(db: &RootDatabase, krate: Option<hir::Crate>, def: Definition)
376376
h |= HlMod::Associated;
377377
match func.self_param(db) {
378378
Some(sp) => match sp.access(db) {
379-
hir::Access::Exclusive => h = h | HlMod::Mutable | HlMod::Reference,
379+
hir::Access::Exclusive => {
380+
h |= HlMod::Mutable;
381+
h |= HlMod::Reference;
382+
}
380383
hir::Access::Shared => h |= HlMod::Reference,
381384
_ => {}
382385
},

0 commit comments

Comments
 (0)