From 7616cc50d3133efabac551bbdb7e006151ba2817 Mon Sep 17 00:00:00 2001 From: baoyachi Date: Tue, 9 Jan 2024 09:31:38 +0800 Subject: [PATCH] Update date_time.rs --- src/date_time.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/date_time.rs b/src/date_time.rs index 320bb88..97af264 100644 --- a/src/date_time.rs +++ b/src/date_time.rs @@ -138,20 +138,20 @@ mod tests { ) -> Result<(), ParseError<&str, ContextError>> { ( non_zero_u32, - tag("-"), + tag('-'), non_zero_u8_len2::<12>, - tag("-"), + tag('-'), non_zero_u8_len2::<31>, space1, u8_len2, - tag(":"), + tag(':'), u8_len2, - tag(":"), + tag(':'), u8_len2, space1, - tag("+"), + tag('+'), u8_len2, - tag(":"), + tag(':'), u8_len2, ) .parse(input)?;