Remove unnecessary imports

This commit is contained in:
Gwilym Inzani 2024-02-20 20:08:21 +00:00
parent e610a1cbf6
commit 8e25f011b4
8 changed files with 3 additions and 14 deletions

View file

@ -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]

View file

@ -1,4 +1,4 @@
use std::{collections::HashSet, iter::FromIterator};
use std::collections::HashSet;
use crate::{
colour::Colour,

View file

@ -11,7 +11,6 @@ use agb::{
},
input::Button,
};
use core::convert::TryInto;
#[derive(PartialEq, Eq)]
enum State {

View file

@ -81,10 +81,7 @@
//! # }
//! ```
use core::{
convert::TryFrom,
ops::{Mul, MulAssign},
};
use core::ops::{Mul, MulAssign};
use agb_fixnum::{Num, Vector2D};

View file

@ -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) };

View file

@ -163,8 +163,6 @@ enum ColourMode {
#[allow(clippy::module_inception)]
mod attributes {
use crate::display::Priority;
use super::*;
#[bitsize(16)]

View file

@ -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.

View file

@ -162,7 +162,6 @@ impl Level {
mod levels {
use super::*;
use agb::fixnum::Vector2D;
include!(concat!(env!("OUT_DIR"), "/levels.rs"));
}