From 5197f5b37d36396880d1ffa3a7477a95c36c7eee Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Mon, 31 Jan 2022 21:25:18 +0000 Subject: [PATCH] Move uses to the top and allow default features --- .../the-hat-chooses-the-wizard/Cargo.toml | 2 +- .../the-hat-chooses-the-wizard/src/main.rs | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/the-hat-chooses-the-wizard/Cargo.toml b/examples/the-hat-chooses-the-wizard/Cargo.toml index 0ec26446..691a4493 100644 --- a/examples/the-hat-chooses-the-wizard/Cargo.toml +++ b/examples/the-hat-chooses-the-wizard/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -agb = { version = "0.8.0", path = "../../agb", default-features = false } +agb = { version = "0.8.0", path = "../../agb" } [build-dependencies] serde = { version = "1.0", features = ["derive"] } diff --git a/examples/the-hat-chooses-the-wizard/src/main.rs b/examples/the-hat-chooses-the-wizard/src/main.rs index 589db875..0575c720 100644 --- a/examples/the-hat-chooses-the-wizard/src/main.rs +++ b/examples/the-hat-chooses-the-wizard/src/main.rs @@ -1,6 +1,16 @@ #![no_std] #![no_main] +use agb::{ + display::{ + background::BackgroundRegular, + object::{ObjectControl, ObjectStandard, Size}, + Priority, HEIGHT, WIDTH, + }, + fixnum::{FixedNum, Vector2D}, + input::{self, Button, ButtonController}, +}; + mod enemies; mod level_display; mod sfx; @@ -103,16 +113,6 @@ mod map_tiles { agb::include_gfx!("gfx/tile_sheet.toml"); -use agb::{ - display::{ - background::BackgroundRegular, - object::{ObjectControl, ObjectStandard, Size}, - Priority, HEIGHT, WIDTH, - }, - fixnum::{FixedNum, Vector2D}, - input::{self, Button, ButtonController}, -}; - type FixedNumberType = FixedNum<10>; pub struct Entity<'a> {