File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -638,10 +638,7 @@ impl LanguageClient {
638
638
let mut match_groups: HashMap < _ , Vec < _ > > = HashMap :: new ( ) ;
639
639
640
640
for dn in diagnostics {
641
- let severity = dn
642
- . severity
643
- . unwrap_or ( DiagnosticSeverity :: Information )
644
- . to_int ( ) ?;
641
+ let severity = dn. severity . unwrap_or ( DiagnosticSeverity :: Hint ) . to_int ( ) ?;
645
642
match_groups
646
643
. entry ( severity)
647
644
. or_insert_with ( Vec :: new)
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ impl From<&Diagnostic> for Sign {
13
13
let line = diagnostic. range . start . line ;
14
14
let severity = diagnostic. severity . unwrap_or ( DiagnosticSeverity :: Hint ) ;
15
15
let name = format ! ( "LanguageClient{:?}" , severity) ;
16
- let id = 75_000 + line * DiagnosticSeverity :: Information as u64 + severity as u64 ;
16
+ let id = 75_000 + line * DiagnosticSeverity :: Hint as u64 + severity as u64 ;
17
17
18
18
Sign { id, line, name }
19
19
}
You can’t perform that action at this time.
0 commit comments