Consider unreachable code to be unnecessary in VSC
This adds `unreachable_code` to the list of diagnostic codes we map to `Unnecessary` in Visual Studio Code. This is consistent with what the TypeScript language server does.
This commit is contained in:
parent
27df89f47d
commit
067ca38ecb
@ -103,6 +103,7 @@ function isUnusedOrUnnecessary(rd: RustDiagnostic): boolean {
|
||||
return [
|
||||
'dead_code',
|
||||
'unknown_lints',
|
||||
'unreachable_code',
|
||||
'unused_attributes',
|
||||
'unused_imports',
|
||||
'unused_macros',
|
||||
|
Loading…
Reference in New Issue
Block a user