Skip to content

Commit

Permalink
fix: remove non-error and add __NonExhaustive
Browse files Browse the repository at this point in the history
  • Loading branch information
FGRibreau committed Jun 11, 2018
1 parent 57f06b6 commit 08c923f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ pub enum ErrorCode {
AccountAlreadyExists,
AccountCountryInvalidAddress,
AccountInvalid,
StripeAccount,
AccountNumberInvalid,
AlipayUpgradeRequired,
AmountTooLarge,
Expand All @@ -137,7 +136,6 @@ pub enum ErrorCode {
BankAccountUnverified,
BitcoinUpgradeRequired,
CardDeclined,
DeclineCode,
ChargeAlreadyCaptured,
ChargeAlreadyRefunded,
ChargeDisputed,
Expand Down Expand Up @@ -190,7 +188,6 @@ pub enum ErrorCode {
ShippingCalculationFailed,
SkuInactive,
StateUnsupported,
LegalEntity,
TaxIdInvalid,
TaxesCalculationFailed,
TestmodeChargesOnly,
Expand All @@ -199,7 +196,8 @@ pub enum ErrorCode {
TokenInUse,
TransfersNotAllowed,
UpstreamOrderCreationFailed,
UrlInvalid
UrlInvalid,
#[doc(hidden)] __NonExhaustive,
}

impl fmt::Display for ErrorCode {
Expand Down

0 comments on commit 08c923f

Please sign in to comment.