diff options
author | quentin konieczko <konieczko@gmail.com> | 2023-04-12 12:55:10 +0200 |
---|---|---|
committer | quentin konieczko <konieczko@gmail.com> | 2023-04-12 12:59:03 +0200 |
commit | 50b0c99f049b50d41a710ee52eea4393d286223e (patch) | |
tree | d9e341c7959f9218d6eff88767ab8f37e515779c /src/shell_parser.rs | |
parent | 2cc19620ea274ce3b92cd557e4aeb91df1257f72 (diff) |
almost there, still crashing
Diffstat (limited to 'src/shell_parser.rs')
-rw-r--r-- | src/shell_parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shell_parser.rs b/src/shell_parser.rs index 7504a51..53ffc9c 100644 --- a/src/shell_parser.rs +++ b/src/shell_parser.rs @@ -40,9 +40,9 @@ pub struct ShellCommandParser { impl ShellCommandParser { /// Parse a command into a list of tokens - pub fn new(command: String) -> Self { + pub fn new(command: &str) -> Self { Self { - parsed: Self::parse(&command), + parsed: Self::parse(command), } } |