From 31c78b6eb965200ad177aed7b8d31f74559fab8c Mon Sep 17 00:00:00 2001 From: JSDurand Date: Fri, 21 Jul 2023 16:18:18 +0800 Subject: Derive Debug for a type This makes it easier if I want to debug things. --- grammar/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammar/src/lib.rs b/grammar/src/lib.rs index ea1299f..194a1f7 100644 --- a/grammar/src/lib.rs +++ b/grammar/src/lib.rs @@ -287,7 +287,7 @@ pub struct Grammar { /// A private type to aid the recursive looping of rergular /// expressions. -#[derive(Copy, Clone)] +#[derive(Copy, Clone, Debug)] enum StackElement { Seen(usize), Unseen(usize), -- cgit v1.2.3-18-g5258