diff --git a/Cargo.toml b/Cargo.toml index 66cd30a..21b63ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,6 @@ default = ["span"] span = [] [dependencies] -miette = "5.3.0" +miette = "7.4.0" nom = { version = "7.1.1", default-features = false } thiserror = "1.0.30" diff --git a/src/parser.rs b/src/parser.rs index 719c241..0c70d28 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<&str, KdlIdentifier, KdlParseError<&str>> + 'b { +) -> impl Fn(&'a str) -> IResult<&'a str, KdlIdentifier, KdlParseError<&'a str>> + 'b { move |input| { let start = input; let (input, (raw, val)) = alt((string, raw_string))(input)?;