Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nom-supreme requirement from ^0.7.0 to ^0.8.0 #21

Merged
merged 1 commit into from May 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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