aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-11-06 09:58:40 +0000
committerBlaž Hrastnik2021-11-06 09:58:58 +0000
commite80708eba7e9959fa720e2563231bba542570295 (patch)
treec5c88732d81a4ca0859a96197a319716beb1dcac /helix-core
parent0f4cd73000140cd9872f291ddb1473f96cbc7364 (diff)
Make sure document diagnostics are sorted
Diffstat (limited to 'helix-core')
-rw-r--r--helix-core/src/diagnostic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/diagnostic.rs b/helix-core/src/diagnostic.rs
index ab47e075..ad1ba16a 100644
--- a/helix-core/src/diagnostic.rs
+++ b/helix-core/src/diagnostic.rs
@@ -10,7 +10,7 @@ pub enum Severity {
}
/// A range of `char`s within the text.
-#[derive(Debug)]
+#[derive(Debug, Clone, Copy, PartialOrd, Ord, PartialEq, Eq)]
pub struct Range {
pub start: usize,
pub end: usize,