Skip to content

Commit

Permalink
chore: Update winnow
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Feb 13, 2024
1 parent 7bc8a90 commit 065b9f9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/toml_edit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ unbounded = []

[dependencies]
indexmap = { version = "2.0.0", features = ["std"] }
winnow = { version = "0.5.40", optional = true }
winnow = { version = "0.6.0", optional = true }
serde = { version = "1.0.145", optional = true }
kstring = { version = "2.0.0", features = ["max_inline"], optional = true }
toml_datetime = { version = "0.6.5", path = "../toml_datetime" }
Expand Down
2 changes: 1 addition & 1 deletion crates/toml_edit/src/parser/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn full_date_(input: &mut Input<'_>) -> PResult<Date> {
_ => 31,
};
if max_days_in_month < day {
input.reset(day_start);
input.reset(&day_start);
return Err(winnow::error::ErrMode::from_external_error(
input,
winnow::error::ErrorKind::Verify,
Expand Down
4 changes: 2 additions & 2 deletions crates/toml_edit/src/parser/strings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ fn mlb_quotes<'i>(

match res {
Err(winnow::error::ErrMode::Backtrack(_)) => {
input.reset(start);
input.reset(&start);
terminated(b"\"", peek(term.by_ref()))
.map(|b| unsafe { from_utf8_unchecked(b, "`bytes` out non-ASCII") })
.parse_next(input)
Expand Down Expand Up @@ -351,7 +351,7 @@ fn mll_quotes<'i>(

match res {
Err(winnow::error::ErrMode::Backtrack(_)) => {
input.reset(start);
input.reset(&start);
terminated(b"'", peek(term.by_ref()))
.map(|b| unsafe { from_utf8_unchecked(b, "`bytes` out non-ASCII") })
.parse_next(input)
Expand Down

0 comments on commit 065b9f9

Please sign in to comment.