Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
baoyachi committed Mar 3, 2024
1 parent 380b495 commit f0b289f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
14 changes: 7 additions & 7 deletions src/date_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8> {
Expand All @@ -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)?;
Expand Down

0 comments on commit f0b289f

Please sign in to comment.