From d144b7fc526b3be6a51e034bfcf91cc3a5245f7b Mon Sep 17 00:00:00 2001 From: Connor Skees Date: Fri, 3 Jul 2020 15:17:04 -0400 Subject: [PATCH] resolve clippy lints --- src/error.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/error.rs b/src/error.rs index 0603bef..93a3dcf 100644 --- a/src/error.rs +++ b/src/error.rs @@ -14,7 +14,11 @@ pub struct SassError { kind: SassErrorKind, } +// todo: we should split the unclonable errors (io, potentially others) into +// a separate enum to allow these methods to be infallible +#[allow(clippy::unimplemented)] impl Clone for SassError { + #[inline] fn clone(&self) -> Self { match &self.kind { SassErrorKind::Raw(a, b) => SassError { @@ -31,7 +35,9 @@ impl Clone for SassError { } } +#[allow(clippy::unimplemented)] impl PartialEq for SassError { + #[inline] fn eq(&self, other: &Self) -> bool { match &self.kind { SassErrorKind::Raw(a, b) => match &other.kind {