diff options
author | Justin Wernick <justin@worthe-it.co.za> | 2023-03-17 11:29:16 +0200 |
---|---|---|
committer | Justin Wernick <justin@worthe-it.co.za> | 2023-03-17 11:29:16 +0200 |
commit | 5d3b67cc755e1ffc2d9e986dd0a725160d09ae69 (patch) | |
tree | 18d8a9ac7f6976d9e276d49b40e1e1872e2a5320 /src/parser.rs | |
parent | f5a00e9090b9d81936137c3fc676cfd0ad25430c (diff) |
Use rustyline
Diffstat (limited to 'src/parser.rs')
-rw-r--r-- | src/parser.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/parser.rs b/src/parser.rs index 89e0d76..9938924 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -58,9 +58,7 @@ impl FromStr for ShackleCommand { fn from_str(s: &str) -> Result<Self, Self::Err> { let trimmed = s.trim(); - if s.len() == 0 { - Ok(ShackleCommand::Exit) - } else if trimmed.len() == 0 { + if trimmed.len() == 0 { Ok(ShackleCommand::Whitespace) } else { let lexed = shlex::split(trimmed); |