Skip to content

Commit

Permalink
feat: make errors non-Copy
Browse files Browse the repository at this point in the history
  • Loading branch information
quasiyoke committed Feb 16, 2021
1 parent 05272c6 commit cd680ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use core::fmt::{Display, Formatter, Result};
use derive_more::Error;

#[cfg_attr(feature = "std", derive(Error))]
#[derive(Clone, Copy, Debug, PartialEq)]
#[derive(Clone, Debug, PartialEq)]
pub enum ArithmeticError {
Overflow,
DivisionByZero,
Expand All @@ -26,7 +26,7 @@ impl Display for ArithmeticError {
}

#[cfg_attr(feature = "std", derive(Error))]
#[derive(Clone, Copy, Debug, PartialEq)]
#[derive(Clone, Debug, PartialEq)]
pub enum FromDecimalError {
UnsupportedExponent,
TooBigMantissa,
Expand Down

0 comments on commit cd680ad

Please sign in to comment.