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-core/src/state.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'helix-core/src/state.rs') diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs index ab475cab..c8a0cf8b 100644 --- a/helix-core/src/state.rs +++ b/helix-core/src/state.rs @@ -1,6 +1,7 @@ use crate::{Rope, Selection}; /// A state represents the current editor state of a single buffer. +#[cfg_attr(feature = "debug", derive(Debug))] #[derive(Clone)] pub struct State { pub doc: Rope, -- cgit v1.2.3-70-g09d2