summaryrefslogtreecommitdiff
path: root/support/texlab/src/diagnostics/chktex.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/src/diagnostics/chktex.rs')
-rw-r--r--support/texlab/src/diagnostics/chktex.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/support/texlab/src/diagnostics/chktex.rs b/support/texlab/src/diagnostics/chktex.rs
index 897887c473..1786644d97 100644
--- a/support/texlab/src/diagnostics/chktex.rs
+++ b/support/texlab/src/diagnostics/chktex.rs
@@ -83,9 +83,9 @@ fn lint(text: &str, current_dir: &Path) -> io::Result<Vec<Diagnostic>> {
let message = captures[6].into();
let range = Range::new_simple(line, character, line, character + digit);
let severity = match kind {
- "Message" => DiagnosticSeverity::Information,
- "Warning" => DiagnosticSeverity::Warning,
- _ => DiagnosticSeverity::Error,
+ "Message" => DiagnosticSeverity::INFORMATION,
+ "Warning" => DiagnosticSeverity::WARNING,
+ _ => DiagnosticSeverity::ERROR,
};
diagnostics.push(Diagnostic {