diff --git a/ggdt/src/graphics/mod.rs b/ggdt/src/graphics/mod.rs index 4cdfc0e..23caa6c 100644 --- a/ggdt/src/graphics/mod.rs +++ b/ggdt/src/graphics/mod.rs @@ -1,4 +1,3 @@ -use num_traits::{PrimInt, Unsigned}; use std::fmt::Display; mod bitmap; @@ -16,5 +15,5 @@ pub use font::*; pub use palette::*; /// Common trait to represent single pixel/colour values. -pub trait Pixel: PrimInt + Unsigned + Default + Display {} -impl Pixel for T where T: PrimInt + Unsigned + Default + Display {} +pub trait Pixel: Default + Display + Eq + Copy + Clone {} +impl Pixel for T where T: Default + Display + Eq + Copy + Clone {}