Browse Source

refactoring: remove unnecessary references

main
fdai7375 2 years ago
committed by fdai7451
parent
commit
fa0dcd981a
  1. 10
      src/error.rs

10
src/error.rs

@ -12,11 +12,11 @@ pub enum ShellError {
impl PartialEq<Self> for ShellError { impl PartialEq<Self> for ShellError {
fn eq(&self, other: &Self) -> bool { fn eq(&self, other: &Self) -> bool {
match self { match self {
&ShellError::EmptyLine => matches!(other, ShellError::EmptyLine),
&ShellError::NotFound(_) => matches!(other, ShellError::NotFound(_)),
&ShellError::ExecuteFailure(_) => matches!(other, ShellError::ExecuteFailure(_)),
&ShellError::MalformedArgs(_) => matches!(other, ShellError::MalformedArgs(_)),
&ShellError::Interrupt => matches!(other, ShellError::Interrupt),
ShellError::EmptyLine => matches!(other, ShellError::EmptyLine),
ShellError::NotFound(_) => matches!(other, ShellError::NotFound(_)),
ShellError::ExecuteFailure(_) => matches!(other, ShellError::ExecuteFailure(_)),
ShellError::MalformedArgs(_) => matches!(other, ShellError::MalformedArgs(_)),
ShellError::Interrupt => matches!(other, ShellError::Interrupt),
} }
} }
} }
Loading…
Cancel
Save