Remove existing trace calls.
This commit is contained in:
parent
99f9450eda
commit
a09c6838b3
@ -68,7 +68,6 @@ impl<'r> OrgModeContextTree<'r> for OrgModeContext<'r> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn match_fail<'s>(&'r self, i: &'s str) -> IResult<&'s str, &'s str, VerboseError<&'s str>> {
|
fn match_fail<'s>(&'r self, i: &'s str) -> IResult<&'s str, &'s str, VerboseError<&'s str>> {
|
||||||
trace!("Checking for fail with \"{}\"", i);
|
|
||||||
let mut current_node = self.head.as_ref();
|
let mut current_node = self.head.as_ref();
|
||||||
while current_node.is_some() {
|
while current_node.is_some() {
|
||||||
let current_node_unwrapped = current_node
|
let current_node_unwrapped = current_node
|
||||||
@ -78,7 +77,6 @@ impl<'r> OrgModeContextTree<'r> for OrgModeContext<'r> {
|
|||||||
ChainBehavior::AndParent(Some(matcher)) => {
|
ChainBehavior::AndParent(Some(matcher)) => {
|
||||||
let local_result = matcher(i);
|
let local_result = matcher(i);
|
||||||
if local_result.is_ok() {
|
if local_result.is_ok() {
|
||||||
trace!("FAIL MATCHED");
|
|
||||||
return local_result;
|
return local_result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -86,7 +84,6 @@ impl<'r> OrgModeContextTree<'r> for OrgModeContext<'r> {
|
|||||||
ChainBehavior::IgnoreParent(Some(matcher)) => {
|
ChainBehavior::IgnoreParent(Some(matcher)) => {
|
||||||
let local_result = matcher(i);
|
let local_result = matcher(i);
|
||||||
if local_result.is_ok() {
|
if local_result.is_ok() {
|
||||||
trace!("FAIL MATCHED");
|
|
||||||
return local_result;
|
return local_result;
|
||||||
}
|
}
|
||||||
// TODO: Make this a custom error
|
// TODO: Make this a custom error
|
||||||
|
@ -93,6 +93,5 @@ pub fn paragraph<'s, 'r>(
|
|||||||
let paragraph_context = context.with_additional_fail_matcher(¶graph_end);
|
let paragraph_context = context.with_additional_fail_matcher(¶graph_end);
|
||||||
let text_element_parser = parser_with_context!(flat_text_element)(¶graph_context);
|
let text_element_parser = parser_with_context!(flat_text_element)(¶graph_context);
|
||||||
let ret = many_till(text_element_parser, paragraph_end)(i);
|
let ret = many_till(text_element_parser, paragraph_end)(i);
|
||||||
trace!("Returning from paragraph with {:#?}", ret);
|
|
||||||
ret
|
ret
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user