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-view/src/editor.rs | |
parent | aebdef8257173b31df77ae02bb23ec2abfd07e5c (diff) |
Implement Debug for data structure as a feature
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r-- | helix-view/src/editor.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 3e91921b..deb7795c 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -9,6 +9,7 @@ use anyhow::Error; pub use helix_core::diagnostic::Severity; +#[cfg_attr(feature = "debug", derive(Debug))] pub struct Editor { pub tree: Tree, pub documents: SlotMap<DocumentId, Document>, @@ -20,6 +21,7 @@ pub struct Editor { pub status_msg: Option<(String, Severity)>, } +#[cfg_attr(feature = "debug", derive(Debug))] #[derive(Copy, Clone)] pub enum Action { Replace, |