diff options
Diffstat (limited to 'src/parse/ast.rs')
-rw-r--r-- | src/parse/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/ast.rs b/src/parse/ast.rs index 1f0cdc2..030ce14 100644 --- a/src/parse/ast.rs +++ b/src/parse/ast.rs @@ -12,10 +12,10 @@ pub struct Commands { } impl Commands { - pub fn parse(full_cmd: &str) -> Result<Self, super::Error> { + pub fn parse(full_cmd: &String) -> Result<Self, super::Error> { Ok(Self::build_ast( Shell::parse(Rule::line, full_cmd) - .map_err(|e| super::Error::new(full_cmd, e))? + .map_err(|e| super::Error::new(full_cmd.clone(), e))? .next() .unwrap() .into_inner() |