diff options
Diffstat (limited to 'editors/code')
-rw-r--r-- | editors/code/src/utils/diagnostics/rust.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/editors/code/src/utils/diagnostics/rust.ts b/editors/code/src/utils/diagnostics/rust.ts index cd02ee46c..0550d0372 100644 --- a/editors/code/src/utils/diagnostics/rust.ts +++ b/editors/code/src/utils/diagnostics/rust.ts | |||
@@ -119,9 +119,7 @@ function isDeprecated(rd: RustDiagnostic): boolean { | |||
119 | return false; | 119 | return false; |
120 | } | 120 | } |
121 | 121 | ||
122 | return [ | 122 | return ['deprecated'].includes(rd.code.code); |
123 | 'deprecated', | ||
124 | ].includes(rd.code.code); | ||
125 | } | 123 | } |
126 | 124 | ||
127 | /** | 125 | /** |