Skip to content

Commit

Permalink
Merge pull request #50 from snipsco/master
Browse files Browse the repository at this point in the history
use nom's error_kind() to be robust againt nom feature selection accross a project
  • Loading branch information
mehcode authored Jan 26, 2018
2 parents eca93d3 + 44e75a7 commit 8734153
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ hjson = ["serde-hjson"]
[dependencies]
lazy_static = "0.2"
serde = "^1.0.8"
nom = "^3.0.0"
nom = "^3.2.1"

toml = { version = "^0.4.1", optional = true }
serde_json = { version = "^1.0.2", optional = true }
Expand Down
4 changes: 2 additions & 2 deletions src/path/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub fn from_str(input: &str) -> Result<Expression, ErrorKind> {

// Forward Incomplete and Error
result => {
return result.to_result();
return result.to_result().map_err(|e| e.into_error_kind());
}
}
}
Expand All @@ -74,7 +74,7 @@ pub fn from_str(input: &str) -> Result<Expression, ErrorKind> {
}

// Forward Incomplete and Error
result => result.to_result(),
result => result.to_result().map_err(|e| e.into_error_kind()),
}
}

Expand Down

0 comments on commit 8734153

Please sign in to comment.