Skip to content

Commit 73721d3

Browse files
Merge pull request #205 from kpcyrd/update
Update dependencies
2 parents c0732bc + 4d8d633 commit 73721d3

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ini = ["rust-ini"]
2424
[dependencies]
2525
lazy_static = "1.0"
2626
serde = "1.0.8"
27-
nom = "5.0.0"
27+
nom = "6"
2828

2929
toml = { version = "0.5", optional = true }
3030
serde_json = { version = "1.0.2", optional = true }

examples/glob/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ edition = "2018"
55

66
[dependencies]
77
config = { path = "../../" }
8-
glob = "0.2"
8+
glob = "0.3"

examples/global/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ edition = "2018"
55

66
[dependencies]
77
config = { path = "../../" }
8-
lazy_static = "^0.2.8"
8+
lazy_static = "1"

examples/watch/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ edition = "2018"
55

66
[dependencies]
77
config = { path = "../../" }
8-
lazy_static = "^0.2.8"
8+
lazy_static = "1"
99
notify = "^4.0.0"

src/path/parser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn ident(i: &str) -> IResult<&str, Expression> {
3535
map(raw_ident, Expression::Identifier)(i)
3636
}
3737

38-
fn postfix<'a>(expr: Expression) -> impl Fn(&'a str) -> IResult<&'a str, Expression> {
38+
fn postfix<'a>(expr: Expression) -> impl FnMut(&'a str) -> IResult<&'a str, Expression> {
3939
let e2 = expr.clone();
4040
let child = map(preceded(tag("."), raw_ident), move |id| {
4141
Expression::Child(Box::new(expr.clone()), id)
@@ -73,10 +73,10 @@ pub fn from_str(input: &str) -> Result<Expression, ErrorKind> {
7373
}
7474
}
7575

76-
pub fn to_error_kind(e: Err<(&str, ErrorKind)>) -> ErrorKind {
76+
pub fn to_error_kind(e: Err<nom::error::Error<&str>>) -> ErrorKind {
7777
match e {
7878
Err::Incomplete(_) => ErrorKind::Complete,
79-
Err::Failure((_, e)) | Err::Error((_, e)) => e,
79+
Err::Failure(e) | Err::Error(e) => e.code,
8080
}
8181
}
8282

0 commit comments

Comments
 (0)