aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreaon <eaon@mit.edu>2018-12-09 22:32:37 +0100
committereaon <eaon@mit.edu>2018-12-09 22:32:37 +0100
commit4d4c778171ea979fb716b94a78c612d2c8fa5249 (patch)
tree56f1d8bd9873f290783f5aa1c861206def8c4c0f
parentb5b0f7e97abe0dbd5b54a1fc69e764a124c271b2 (diff)
downloadmail-4d4c778171ea979fb716b94a78c612d2c8fa5249.tar.gz
Remove unnecessary (de)refs
-rw-r--r--src/error.rs12
1 files changed, 6 insertions, 6 deletions
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,
}
}