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, }