From de3014ef3c9a0632d5c64913498fcdbf0f53af56 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 13 Feb 2024 08:46:25 -0600 Subject: [PATCH] chore: Update winnow --- Cargo.lock | 15 ++++++++++++--- crates/typos/Cargo.toml | 2 +- crates/typos/src/tokens.rs | 2 +- crates/varcon-core/Cargo.toml | 2 +- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index dbc605b..360c42f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1289,7 +1289,7 @@ dependencies = [ "serde", "serde_spanned", "toml_datetime", - "winnow", + "winnow 0.5.40", ] [[package]] @@ -1327,7 +1327,7 @@ dependencies = [ "thiserror", "unicode-segmentation", "unicode-xid", - "winnow", + "winnow 0.6.0", ] [[package]] @@ -1509,7 +1509,7 @@ name = "varcon-core" version = "4.0.4" dependencies = [ "enumflags2", - "winnow", + "winnow 0.6.0", ] [[package]] @@ -1726,6 +1726,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "winnow" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1dbce9e90e5404c5a52ed82b1d13fc8cfbdad85033b6f57546ffd1265f8451" +dependencies = [ + "memchr", +] + [[package]] name = "zerocopy" version = "0.7.32" diff --git a/crates/typos/Cargo.toml b/crates/typos/Cargo.toml index ea2b433..8cb4152 100644 --- a/crates/typos/Cargo.toml +++ b/crates/typos/Cargo.toml @@ -14,7 +14,7 @@ include.workspace = true [dependencies] anyhow = "1.0" thiserror = "1.0" -winnow = "0.5.40" +winnow = "0.6.0" unicode-xid = "0.2.4" once_cell = "1.19.0" serde = { version = "1.0", features = ["derive"] } diff --git a/crates/typos/src/tokens.rs b/crates/typos/src/tokens.rs index 4beabdc..13aebcd 100644 --- a/crates/typos/src/tokens.rs +++ b/crates/typos/src/tokens.rs @@ -395,7 +395,7 @@ mod parser { take_while(padding_len..=padding_len, is_base64_padding).parse_next(input)?; let after_offset = input.offset_from(&start); - input.reset(start); + input.reset(&start); Ok(input.next_slice(after_offset)) }) .parse_next(input) diff --git a/crates/varcon-core/Cargo.toml b/crates/varcon-core/Cargo.toml index a8f01f9..825e51f 100644 --- a/crates/varcon-core/Cargo.toml +++ b/crates/varcon-core/Cargo.toml @@ -16,7 +16,7 @@ parser = ["dep:winnow"] flags = ["dep:enumflags2"] [dependencies] -winnow = { version = "0.5.40", optional = true } +winnow = { version = "0.6.0", optional = true } enumflags2 = { version = "0.7", optional = true } [package.metadata.docs.rs]