From 337e6ec339d1661abb7e91d82f0ac3d03fe6f061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Sun, 15 Dec 2024 18:23:51 -0800 Subject: [PATCH] fix(deps): Back out "feat(deps): bump miette to 7.4.0" Fixes: https://github.com/kdl-org/kdl-rs/issues/97 This backs out commit b5fa2e1c70e522b6929559b9382b34368d2f41da. Turns out this was a breaking change, so undoing it. --- Cargo.toml | 2 +- src/parser.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2576ec1..9f71e90 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,6 @@ default = ["span"] span = [] [dependencies] -miette = "7.4.0" +miette = "5.3.0" nom = { version = "7.1.1", default-features = false } thiserror = "1.0.30" diff --git a/src/parser.rs b/src/parser.rs index 0c70d28..719c241 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -286,7 +286,7 @@ fn plain_identifier<'a: 'b, 'b>( fn quoted_identifier<'a: 'b, 'b>( kdl_parser: &'b KdlParser<'a>, -) -> impl Fn(&'a str) -> IResult<&'a str, KdlIdentifier, KdlParseError<&'a str>> + 'b { +) -> impl Fn(&'a str) -> IResult<&str, KdlIdentifier, KdlParseError<&str>> + 'b { move |input| { let start = input; let (input, (raw, val)) = alt((string, raw_string))(input)?;