Move consuming the trailing whitespace up to the element matchers.
This commit is contained in:
@@ -31,9 +31,6 @@ pub fn clock<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s str, C
|
||||
parser_with_context!(inactive_timestamp)(context),
|
||||
))(remaining)?;
|
||||
|
||||
let (remaining, _trailing_ws) =
|
||||
maybe_consume_trailing_whitespace_if_not_exiting(context, remaining)?;
|
||||
|
||||
let source = get_consumed(input, remaining);
|
||||
Ok((remaining, Clock { source }))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user