Using a mutable reference breaks clone.

This commit is contained in:
Tom Alexander
2022-10-14 20:25:10 -04:00
parent 112aba3137
commit add717071c
3 changed files with 4 additions and 4 deletions

View File

@@ -133,7 +133,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(&paragraph_end);
let initial_context = NomContext::new(&mut paragraph_end);
todo!()
// many1(parser_with_context!(paragraph)(initial_context))(input)
}