From f3bda2fa9643ff4ae860d6482cf0a601298300ac Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 4 Mar 2022 20:33:51 -0500 Subject: clippy --- src/parse/ast.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/parse/ast.rs b/src/parse/ast.rs index 030ce14..9c99907 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: &String) -> Result { + pub fn parse(full_cmd: &str) -> Result { Ok(Self::build_ast( Shell::parse(Rule::line, full_cmd) - .map_err(|e| super::Error::new(full_cmd.clone(), e))? + .map_err(|e| super::Error::new(full_cmd.to_string(), e))? .next() .unwrap() .into_inner() -- cgit v1.2.3-54-g00ecf