Skip to content

Commit

Permalink
Update nom-supreme requirement from ^0.7.0 to ^0.8.0
Browse files Browse the repository at this point in the history
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](Lucretiel/nom-supreme@0.7.0...0.7.0)

---
updated-dependencies:
- dependency-name: nom-supreme
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
  • Loading branch information
dependabot[bot] authored and olson-sean-k committed May 21, 2022
1 parent b1af159 commit c4bfe20
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 c4bfe20

Please sign in to comment.