From 13de08dce74b8bd377720a314673d109430ec5ab Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Wed, 23 Mar 2022 20:42:31 +0000 Subject: [PATCH] cargo fix --- agb/examples/sprites.rs | 2 +- agb/src/display/object.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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};