summaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-09-24 01:29:41 +0000
committerBlaž Hrastnik2021-11-29 02:00:28 +0000
commit30171416cb5b801086da69566a82462fca16ea14 (patch)
treeda79c4a16b4d1a5d9ebecb87edb2109bc3b87611 /helix-core
parent42fde95223a62bded340a1737e8be50ef94af4af (diff)
Gutter functions
Diffstat (limited to 'helix-core')
-rw-r--r--helix-core/src/diagnostic.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/diagnostic.rs b/helix-core/src/diagnostic.rs
index ad1ba16a..4fcf51c9 100644
--- a/helix-core/src/diagnostic.rs
+++ b/helix-core/src/diagnostic.rs
@@ -1,7 +1,7 @@
//! LSP diagnostic utility types.
/// Describes the severity level of a [`Diagnostic`].
-#[derive(Debug, Eq, PartialEq)]
+#[derive(Debug, Clone, Copy, Eq, PartialEq)]
pub enum Severity {
Error,
Warning,
@@ -17,7 +17,7 @@ pub struct Range {
}
/// Corresponds to [`lsp_types::Diagnostic`](https://docs.rs/lsp-types/0.91.0/lsp_types/struct.Diagnostic.html)
-#[derive(Debug)]
+#[derive(Debug, Clone)]
pub struct Diagnostic {
pub range: Range,
pub line: usize,