From 7cc13fefe9bd09ea778a0eb8c26bf133e6ad2476 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Mon, 7 Jun 2021 22:34:19 +0800 Subject: Derive debug without feature Note that this also removed those `finish_non_exhaustive()`. --- helix-core/src/diagnostic.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'helix-core/src/diagnostic.rs') diff --git a/helix-core/src/diagnostic.rs b/helix-core/src/diagnostic.rs index 0ab7b645..e08a71e7 100644 --- a/helix-core/src/diagnostic.rs +++ b/helix-core/src/diagnostic.rs @@ -1,5 +1,4 @@ -#[cfg_attr(feature = "debug", derive(Debug))] -#[derive(Eq, PartialEq)] +#[derive(Debug, Eq, PartialEq)] pub enum Severity { Error, Warning, @@ -7,13 +6,13 @@ pub enum Severity { Hint, } -#[cfg_attr(feature = "debug", derive(Debug))] +#[derive(Debug)] pub struct Range { pub start: usize, pub end: usize, } -#[cfg_attr(feature = "debug", derive(Debug))] +#[derive(Debug)] pub struct Diagnostic { pub range: Range, pub line: usize, -- cgit v1.2.3-70-g09d2