From 9550c54ba6bf7f5c36f7ba7a6407224adf61d64f Mon Sep 17 00:00:00 2001 From: fdai7375 Date: Thu, 2 Feb 2023 19:05:48 +0100 Subject: [PATCH] refactoring: remove unnecessary references --- src/error.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/error.rs b/src/error.rs index b73f6ed..ef27eff 100644 --- a/src/error.rs +++ b/src/error.rs @@ -12,11 +12,11 @@ pub enum ShellError { impl PartialEq for ShellError { fn eq(&self, other: &Self) -> bool { 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), } } }