mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
match style
This commit is contained in:
parent
44726b6ca3
commit
19b1d505db
1 changed files with 4 additions and 1 deletions
|
@ -376,7 +376,10 @@ fn highlight_def(db: &RootDatabase, krate: Option<hir::Crate>, def: Definition)
|
|||
h |= HlMod::Associated;
|
||||
match func.self_param(db) {
|
||||
Some(sp) => match sp.access(db) {
|
||||
hir::Access::Exclusive => h = h | HlMod::Mutable | HlMod::Reference,
|
||||
hir::Access::Exclusive => {
|
||||
h |= HlMod::Mutable;
|
||||
h |= HlMod::Reference;
|
||||
}
|
||||
hir::Access::Shared => h |= HlMod::Reference,
|
||||
_ => {}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue