Skip to content

Commit

Permalink
Bump some deps
Browse files Browse the repository at this point in the history
  • Loading branch information
chevdor committed Oct 4, 2022
1 parent 7a27a0f commit ae03324
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 52 deletions.
78 changes: 29 additions & 49 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ path = "test/test.rs"

[dependencies]
failure = "0.1"
nom = "5.1"
nom = "7.1"
serde = "1.0"
serde_json = "1.0"
structopt = "0.3"
Expand Down
4 changes: 2 additions & 2 deletions src/query_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use nom::{
bytes::complete::{escaped_transform, take_while1, take_while_m_n},
character::complete::{char, digit1, none_of, one_of},
combinator::{all_consuming, map, map_res},
error::ErrorKind,
error::Error,
multi::many0,
sequence::{delimited, preceded, tuple},
Err, IResult,
Expand Down Expand Up @@ -79,7 +79,7 @@ fn tpath(s: &str) -> IResult<&str, Vec<TpathSegment>> {
))(s)
}

pub fn parse_query(s: &str) -> Result<Query, Err<(&str, ErrorKind)>> {
pub fn parse_query(s: &str) -> Result<Query, Err<Error<&str>>> {
all_consuming(tpath)(s).map(|(trailing, res)| {
assert!(trailing.is_empty());
Query(res)
Expand Down

0 comments on commit ae03324

Please sign in to comment.