From d71bf2633e970fb51cbd4d812ffe25bd5b2955b1 Mon Sep 17 00:00:00 2001 From: Colin Reeder Date: Tue, 23 Jan 2024 13:16:30 -0700 Subject: [PATCH] Remove unused error variant --- src/lib.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 19062c8..cd49b47 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -48,9 +48,6 @@ pub enum ParseError { #[error("An invalid character was found")] InvalidCharacter, - #[error("Specified parameters cannot be used together")] - ConflictingParams, - #[error("A requested component was not found")] MissingComponent, @@ -64,9 +61,6 @@ pub enum SignError { #[error("An invalid character was found")] InvalidCharacter, - #[error("Specified parameters cannot be used together")] - ConflictingParams, - #[error("A requested component was not found")] MissingComponent, @@ -85,7 +79,6 @@ pub enum SignError { #[derive(Debug)] enum CommonError { InvalidCharacter, - ConflictingParams, MissingComponent, Unsupported, } @@ -94,7 +87,6 @@ impl From for SignError { fn from(src: CommonError) -> Self { match src { CommonError::InvalidCharacter => Self::InvalidCharacter, - CommonError::ConflictingParams => Self::ConflictingParams, CommonError::MissingComponent => Self::MissingComponent, CommonError::Unsupported => Self::Unsupported, } @@ -105,7 +97,6 @@ impl From for VerifyError { fn from(src: CommonError) -> Self { match src { CommonError::InvalidCharacter => Self::InvalidCharacter, - CommonError::ConflictingParams => Self::ConflictingParams, CommonError::MissingComponent => Self::MissingComponent, CommonError::Unsupported => Self::Unsupported, } @@ -116,7 +107,6 @@ impl From for ParseError { fn from(src: CommonError) -> Self { match src { CommonError::InvalidCharacter => Self::InvalidCharacter, - CommonError::ConflictingParams => Self::ConflictingParams, CommonError::MissingComponent => Self::MissingComponent, CommonError::Unsupported => Self::Unsupported, } @@ -140,9 +130,6 @@ pub enum VerifyError { #[error("An invalid character was found")] InvalidCharacter, - #[error("Specified parameters cannot be used together")] - ConflictingParams, - #[error("A requested component was not found")] MissingComponent, } -- 2.45.2