diff --git a/Cargo.toml b/Cargo.toml index 220ff72..1a3695c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,7 @@ document-features = { version = "0.2", optional = true } default = ["git2", "tzdb"] [dev-dependencies] -winnow = "0.5.33" +winnow = "0.6" [workspace] members = ["example_shadow", "example_shadow_hook", "example_wasm"] diff --git a/src/date_time.rs b/src/date_time.rs index 97af264..1e399bc 100644 --- a/src/date_time.rs +++ b/src/date_time.rs @@ -113,7 +113,7 @@ mod tests { use std::num::{NonZeroU32, NonZeroU8}; use winnow::ascii::{digit1, space1}; use winnow::error::{ContextError, ParseError}; - use winnow::token::{tag, take}; + use winnow::token::{literal, take}; use winnow::{PResult, Parser}; fn u8_len2(input: &mut &str) -> PResult { @@ -138,20 +138,20 @@ mod tests { ) -> Result<(), ParseError<&str, ContextError>> { ( non_zero_u32, - tag('-'), + literal('-'), non_zero_u8_len2::<12>, - tag('-'), + literal('-'), non_zero_u8_len2::<31>, space1, u8_len2, - tag(':'), + literal(':'), u8_len2, - tag(':'), + literal(':'), u8_len2, space1, - tag('+'), + literal('+'), u8_len2, - tag(':'), + literal(':'), u8_len2, ) .parse(input)?;