|
|
@ -3,7 +3,6 @@ use std::process::Command; |
|
|
|
#[derive(Debug)]
|
|
|
|
pub enum ShellError {
|
|
|
|
EmptyLine,
|
|
|
|
Exit,
|
|
|
|
NotFound(Command),
|
|
|
|
ExecuteFailure(String),
|
|
|
|
MalformedArgs(String),
|
|
|
@ -13,7 +12,6 @@ impl PartialEq<Self> for ShellError { |
|
|
|
fn eq(&self, other: &Self) -> bool {
|
|
|
|
match self {
|
|
|
|
&ShellError::EmptyLine => matches!(other, ShellError::EmptyLine),
|
|
|
|
&ShellError::Exit => matches!(other, ShellError::Exit),
|
|
|
|
&ShellError::NotFound(_) => matches!(other, ShellError::NotFound(_)),
|
|
|
|
&ShellError::ExecuteFailure(_) => matches!(other, ShellError::ExecuteFailure(_)),
|
|
|
|
&ShellError::MalformedArgs(_) => matches!(other, ShellError::MalformedArgs(_)),
|
|
|
|