Skip to content

Commit

Permalink
Merge pull request #21 from olson-sean-k/dependabot/cargo/nom-supreme…
Browse files Browse the repository at this point in the history
…-tw-0.8.0

Update nom-supreme requirement from `^0.7.0` to `^0.8.0`.
  • Loading branch information
olson-sean-k committed May 21, 2022
2 parents b1af159 + c4bfe20 commit 1c72837
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 1 addition & 5 deletions Cargo.toml
Expand Up @@ -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"
Expand All @@ -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
Expand Down
5 changes: 4 additions & 1 deletion src/token/parse.rs
Expand Up @@ -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"))]
Expand All @@ -38,6 +37,10 @@ pub type Annotation = Span;
))]
pub type Annotation = ();

type BaseErrorKind =
supreme::BaseErrorKind<&'static str, Box<dyn std::error::Error + Send + Sync + 'static>>;
type StackContext = supreme::StackContext<&'static str>;

type Expression<'i> = Located<'i, str>;
type Input<'i> = Stateful<Expression<'i>, ParserState>;
type ErrorTree<'i> = supreme::ErrorTree<Input<'i>>;
Expand Down

0 comments on commit 1c72837

Please sign in to comment.