From 4d4c778171ea979fb716b94a78c612d2c8fa5249 Mon Sep 17 00:00:00 2001 From: eaon Date: Sun, 9 Dec 2018 16:32:37 -0500 Subject: Remove unnecessary (de)refs --- src/error.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/error.rs b/src/error.rs index 33e1f78..3eba2ba 100644 --- a/src/error.rs +++ b/src/error.rs @@ -20,17 +20,17 @@ impl fmt::Display for Error { impl std::error::Error for Error { fn description(&self) -> &str { - match *self { - Error::IoError(ref e) => error::Error::description(e), - Error::NotmuchError(ref e) => e.description(), + match self { + Error::IoError(e) => error::Error::description(e), + Error::NotmuchError(e) => e.description(), Error::UnspecifiedError => "Generic notmuch error", } } fn cause(&self) -> Option<&dyn error::Error> { - match *self { - Error::IoError(ref e) => Some(e), - Error::NotmuchError(ref e) => Some(e), + match self { + Error::IoError(e) => Some(e), + Error::NotmuchError(e) => Some(e), Error::UnspecifiedError => None, } } -- cgit v1.2.1