diff options
author | notoria | 2021-06-06 15:55:05 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-10 13:00:08 +0000 |
commit | 1a3a92463405fdd4738fbdbfda212aef58a2919d (patch) | |
tree | bc47fdc4957a6890cbad286c52a445ba5d96da9a /helix-core/src/diagnostic.rs | |
parent | aebdef8257173b31df77ae02bb23ec2abfd07e5c (diff) |
Implement Debug for data structure as a feature
Diffstat (limited to 'helix-core/src/diagnostic.rs')
-rw-r--r-- | helix-core/src/diagnostic.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-core/src/diagnostic.rs b/helix-core/src/diagnostic.rs index cf58b9af..0ab7b645 100644 --- a/helix-core/src/diagnostic.rs +++ b/helix-core/src/diagnostic.rs @@ -1,3 +1,4 @@ +#[cfg_attr(feature = "debug", derive(Debug))] #[derive(Eq, PartialEq)] pub enum Severity { Error, @@ -6,10 +7,13 @@ pub enum Severity { Hint, } +#[cfg_attr(feature = "debug", derive(Debug))] pub struct Range { pub start: usize, pub end: usize, } + +#[cfg_attr(feature = "debug", derive(Debug))] pub struct Diagnostic { pub range: Range, pub line: usize, |