diff options
author | Ivan Tham | 2021-06-07 14:34:19 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-10 13:00:08 +0000 |
commit | 7cc13fefe9bd09ea778a0eb8c26bf133e6ad2476 (patch) | |
tree | 764c662e47f12134a8a7f20211573243100777a5 /helix-view/src/editor.rs | |
parent | 1a3a92463405fdd4738fbdbfda212aef58a2919d (diff) |
Derive debug without feature
Note that this also removed those `finish_non_exhaustive()`.
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r-- | helix-view/src/editor.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index deb7795c..df71e2d6 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -9,7 +9,7 @@ use anyhow::Error; pub use helix_core::diagnostic::Severity; -#[cfg_attr(feature = "debug", derive(Debug))] +#[derive(Debug)] pub struct Editor { pub tree: Tree, pub documents: SlotMap<DocumentId, Document>, @@ -21,8 +21,7 @@ pub struct Editor { pub status_msg: Option<(String, Severity)>, } -#[cfg_attr(feature = "debug", derive(Debug))] -#[derive(Copy, Clone)] +#[derive(Debug, Copy, Clone)] pub enum Action { Replace, HorizontalSplit, |