diff --git a/src/gba_cell.rs b/src/gba_cell.rs index 75cf1b7..fa8acfa 100644 --- a/src/gba_cell.rs +++ b/src/gba_cell.rs @@ -71,6 +71,7 @@ unsafe impl GbaCellSafe for fixed::FixedU8 {} /// A "cell" type suitable to hold a global on the GBA. #[repr(transparent)] pub struct GbaCell(core::cell::UnsafeCell); +#[cfg(feature = "on_gba")] impl Debug for GbaCell where T: GbaCellSafe + Debug, @@ -90,6 +91,7 @@ where Self::new(T::default()) } } +#[cfg(feature = "on_gba")] impl Clone for GbaCell where T: GbaCellSafe + Default,