summaryrefslogtreecommitdiffstats
path: root/src/path
diff options
context:
space:
mode:
Diffstat (limited to 'src/path')
-rw-r--r--src/path/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path/parser.rs b/src/path/parser.rs
index d4b13dd..7629193 100644
--- a/src/path/parser.rs
+++ b/src/path/parser.rs
@@ -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());
}
}
}
@@ -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()),
}
}