diff --git a/agb/examples/sprites.rs b/agb/examples/sprites.rs index b4b9daf5..4131f587 100644 --- a/agb/examples/sprites.rs +++ b/agb/examples/sprites.rs @@ -5,7 +5,7 @@ extern crate alloc; use agb::display::object::{Graphics, ObjectController, Sprite, TagMap}; use alloc::vec::Vec; -use bare_metal::CriticalSection; + const GRAPHICS: &Graphics = agb::include_aseprite!( "../examples/the-purple-night/gfx/objects.aseprite", diff --git a/agb/src/display/object.rs b/agb/src/display/object.rs index 3f5fd176..47e3612f 100644 --- a/agb/src/display/object.rs +++ b/agb/src/display/object.rs @@ -1,7 +1,7 @@ use alloc::vec::Vec; use core::alloc::Layout; use core::cell::RefCell; -use core::hash::BuildHasherDefault; + use core::ptr::NonNull; use core::slice; use modular_bitfield::prelude::{B10, B2, B3, B4, B5, B8, B9};