diff --git a/Cargo.lock b/Cargo.lock index 8da55e2e..ac1dd6b6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1119,9 +1119,9 @@ checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" [[package]] name = "winnow" -version = "0.5.40" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +checksum = "6b1dbce9e90e5404c5a52ed82b1d13fc8cfbdad85033b6f57546ffd1265f8451" dependencies = [ "memchr", ] diff --git a/crates/toml_edit/Cargo.toml b/crates/toml_edit/Cargo.toml index 816952ef..eca83d0d 100644 --- a/crates/toml_edit/Cargo.toml +++ b/crates/toml_edit/Cargo.toml @@ -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" } diff --git a/crates/toml_edit/src/parser/datetime.rs b/crates/toml_edit/src/parser/datetime.rs index 541aa0ba..86c5a5bc 100644 --- a/crates/toml_edit/src/parser/datetime.rs +++ b/crates/toml_edit/src/parser/datetime.rs @@ -73,7 +73,7 @@ fn full_date_(input: &mut Input<'_>) -> PResult { _ => 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, diff --git a/crates/toml_edit/src/parser/strings.rs b/crates/toml_edit/src/parser/strings.rs index b2d8a526..6223e706 100644 --- a/crates/toml_edit/src/parser/strings.rs +++ b/crates/toml_edit/src/parser/strings.rs @@ -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) @@ -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)