Skip to content

Commit

Permalink
correct the cfg problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokathor committed May 14, 2024
1 parent e43928f commit c9114de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gba_cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ unsafe impl<T> GbaCellSafe for fixed::FixedU8<T> {}
/// A "cell" type suitable to hold a global on the GBA.
#[repr(transparent)]
pub struct GbaCell<T>(core::cell::UnsafeCell<T>);
#[cfg(feature = "on_gba")]
impl<T> Debug for GbaCell<T>
where
T: GbaCellSafe + Debug,
Expand All @@ -90,6 +91,7 @@ where
Self::new(T::default())
}
}
#[cfg(feature = "on_gba")]
impl<T> Clone for GbaCell<T>
where
T: GbaCellSafe + Default,
Expand Down

0 comments on commit c9114de

Please sign in to comment.