From 1a3a92463405fdd4738fbdbfda212aef58a2919d Mon Sep 17 00:00:00 2001 From: notoria Date: Sun, 6 Jun 2021 17:55:05 +0200 Subject: Implement Debug for data structure as a feature --- helix-view/src/view.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'helix-view/src/view.rs') diff --git a/helix-view/src/view.rs b/helix-view/src/view.rs index 7bd31305..e222c11c 100644 --- a/helix-view/src/view.rs +++ b/helix-view/src/view.rs @@ -12,6 +12,7 @@ pub const PADDING: usize = 5; type Jump = (DocumentId, Selection); +#[cfg_attr(feature = "debug", derive(Debug))] pub struct JumpList { jumps: Vec, current: usize, @@ -58,6 +59,7 @@ impl JumpList { } } +#[cfg_attr(feature = "debug", derive(Debug))] pub struct View { pub id: ViewId, pub doc: DocumentId, -- cgit v1.2.3-70-g09d2