Lifetime issue.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
use std::cell::RefCell;
|
||||
use std::rc::Rc;
|
||||
|
||||
/*
|
||||
|
||||
hypothetical link:
|
||||
@@ -133,7 +136,7 @@ pub fn paragraph_end(input: &str) -> Res<&str, &str> {
|
||||
}
|
||||
|
||||
pub fn document(input: &str) -> Res<&str, Vec<(Vec<TextElement>, &str)>> {
|
||||
let initial_context = NomContext::new(Box::new(paragraph_end));
|
||||
let initial_context = NomContext::new(Rc::new(RefCell::new(paragraph_end)));
|
||||
todo!()
|
||||
// many1(parser_with_context!(paragraph)(initial_context))(input)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user