From c4bfe20edb3b2bcd90a5bcd4a384a4a99dee9be2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 20 May 2022 23:36:10 +0000 Subject: [PATCH] Update nom-supreme requirement from ^0.7.0 to ^0.8.0 Updates the requirements on [nom-supreme](https://github.com/Lucretiel/nom-supreme) to permit the latest version. - [Release notes](https://github.com/Lucretiel/nom-supreme/releases) - [Changelog](https://github.com/Lucretiel/nom-supreme/blob/main/CHANGELOG.md) - [Commits](https://github.com/Lucretiel/nom-supreme/compare/0.7.0...0.7.0) --- updated-dependencies: - dependency-name: nom-supreme dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 6 +----- src/token/parse.rs | 5 ++++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 49ecf4a..83e6ac9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,6 +42,7 @@ bstr = "^0.2.0" const_format = "^0.2.0" itertools = "^0.10.0" nom = "^7.0.0" +nom-supreme = "^0.8.0" pori = "=0.0.0" smallvec = "^1.5.0" thiserror = "^1.0.0" @@ -52,11 +53,6 @@ version = "^4.5.0" default-features = false optional = true -[dependencies.nom-supreme] -version = "^0.7.0" -default-features = false -features = ["error"] - [dependencies.regex] version = "^1.5.0" default-features = false diff --git a/src/token/parse.rs b/src/token/parse.rs index fedd11c..2366b7e 100644 --- a/src/token/parse.rs +++ b/src/token/parse.rs @@ -19,7 +19,6 @@ use pori::{Located, Location, Stateful}; use std::borrow::Cow; use std::fmt::{self, Display, Formatter}; use std::str::FromStr; -use supreme::{BaseErrorKind, StackContext}; use thiserror::Error; #[cfg(any(feature = "diagnostics-inspect", feature = "diagnostics-report"))] @@ -38,6 +37,10 @@ pub type Annotation = Span; ))] pub type Annotation = (); +type BaseErrorKind = + supreme::BaseErrorKind<&'static str, Box>; +type StackContext = supreme::StackContext<&'static str>; + type Expression<'i> = Located<'i, str>; type Input<'i> = Stateful, ParserState>; type ErrorTree<'i> = supreme::ErrorTree>;