mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Remove unnecessary imports
This commit is contained in:
parent
e610a1cbf6
commit
8e25f011b4
|
@ -32,7 +32,6 @@ use core::{
|
|||
borrow::Borrow,
|
||||
fmt::Debug,
|
||||
hash::{BuildHasher, BuildHasherDefault, Hash},
|
||||
iter::FromIterator,
|
||||
num::Wrapping,
|
||||
ops::Index,
|
||||
};
|
||||
|
@ -949,8 +948,6 @@ impl core::ops::Add<i32> for HashType {
|
|||
mod test {
|
||||
use core::{cell::RefCell, hash::Hasher};
|
||||
|
||||
use alloc::vec::Vec;
|
||||
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use std::{collections::HashSet, iter::FromIterator};
|
||||
use std::collections::HashSet;
|
||||
|
||||
use crate::{
|
||||
colour::Colour,
|
||||
|
|
|
@ -11,7 +11,6 @@ use agb::{
|
|||
},
|
||||
input::Button,
|
||||
};
|
||||
use core::convert::TryInto;
|
||||
|
||||
#[derive(PartialEq, Eq)]
|
||||
enum State {
|
||||
|
|
|
@ -81,10 +81,7 @@
|
|||
//! # }
|
||||
//! ```
|
||||
|
||||
use core::{
|
||||
convert::TryFrom,
|
||||
ops::{Mul, MulAssign},
|
||||
};
|
||||
use core::ops::{Mul, MulAssign};
|
||||
|
||||
use agb_fixnum::{Num, Vector2D};
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ use super::{
|
|||
set_graphics_mode, set_graphics_settings, DisplayMode, GraphicsSettings, HEIGHT, WIDTH,
|
||||
};
|
||||
|
||||
use core::{convert::TryInto, marker::PhantomData};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
const BITMAP_MODE_3: MemoryMapped2DArray<u16, { WIDTH as usize }, { HEIGHT as usize }> =
|
||||
unsafe { MemoryMapped2DArray::new(0x600_0000) };
|
||||
|
|
|
@ -163,8 +163,6 @@ enum ColourMode {
|
|||
|
||||
#[allow(clippy::module_inception)]
|
||||
mod attributes {
|
||||
use crate::display::Priority;
|
||||
|
||||
use super::*;
|
||||
|
||||
#[bitsize(16)]
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#![deny(missing_docs)]
|
||||
use crate::fixnum::Vector2D;
|
||||
use bitflags::bitflags;
|
||||
use core::convert::From;
|
||||
|
||||
/// Tri-state enum. Allows for -1, 0 and +1.
|
||||
/// Useful if checking if the D-Pad is pointing left, right, or unpressed.
|
||||
|
|
|
@ -162,7 +162,6 @@ impl Level {
|
|||
|
||||
mod levels {
|
||||
use super::*;
|
||||
use agb::fixnum::Vector2D;
|
||||
|
||||
include!(concat!(env!("OUT_DIR"), "/levels.rs"));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue