From 7eb8087f9d7c11e4bb3ade08f3322aaeef1dd447 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 30 Oct 2022 05:48:43 -0400 Subject: [PATCH] Cleanup --- src/parser/nom_context.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parser/nom_context.rs b/src/parser/nom_context.rs index 624027d..8c98875 100644 --- a/src/parser/nom_context.rs +++ b/src/parser/nom_context.rs @@ -7,9 +7,11 @@ use nom::error::VerboseError; use nom::IResult; use nom::Parser; +type ContextReference = Option>>; + pub struct ContextLayer { data: T, - parent: Option>>, + parent: ContextReference, } impl ContextLayer { @@ -21,8 +23,6 @@ impl ContextLayer { } } -type ContextReference = Option>>; - pub struct TestContext { head: ContextReference, }