diff --git a/agb/src/number.rs b/agb/src/number.rs index c27401f9..c09b60f7 100644 --- a/agb/src/number.rs +++ b/agb/src/number.rs @@ -1,9 +1,9 @@ use core::{ - fmt::Display, + fmt::{Debug, Display}, ops::{Add, AddAssign, Div, DivAssign, Mul, MulAssign, Neg, Rem, RemAssign, Sub, SubAssign}, }; -#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug)] +#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] pub struct Num(i32); pub fn change_base(num: Num) -> Num { @@ -223,3 +223,9 @@ impl Display for Num { Ok(()) } } + +impl Debug for Num { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { + write!(f, "{}", self) + } +}