diff options
Diffstat (limited to 'src/parse/ast.rs')
-rw-r--r-- | src/parse/ast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/ast.rs b/src/parse/ast.rs index d331863..9cf583a 100644 --- a/src/parse/ast.rs +++ b/src/parse/ast.rs @@ -15,7 +15,7 @@ impl Commands { pub fn parse(full_cmd: &str) -> Result<Self, super::Error> { Ok(Self::build_ast( Shell::parse(Rule::line, full_cmd) - .map_err(|e| super::Error::new(full_cmd, anyhow::anyhow!(e)))? + .map_err(|e| super::Error::new(full_cmd, e))? .next() .unwrap() .into_inner() |