resolve clippy lints

This commit is contained in:
Connor Skees 2020-07-03 15:17:04 -04:00
parent d7fd88dea4
commit d144b7fc52

View File

@ -14,7 +14,11 @@ pub struct SassError {
kind: SassErrorKind, 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 { impl Clone for SassError {
#[inline]
fn clone(&self) -> Self { fn clone(&self) -> Self {
match &self.kind { match &self.kind {
SassErrorKind::Raw(a, b) => SassError { SassErrorKind::Raw(a, b) => SassError {
@ -31,7 +35,9 @@ impl Clone for SassError {
} }
} }
#[allow(clippy::unimplemented)]
impl PartialEq for SassError { impl PartialEq for SassError {
#[inline]
fn eq(&self, other: &Self) -> bool { fn eq(&self, other: &Self) -> bool {
match &self.kind { match &self.kind {
SassErrorKind::Raw(a, b) => match &other.kind { SassErrorKind::Raw(a, b) => match &other.kind {