From 009b37dd0e60a56d45212d504753a1f77443efbe Mon Sep 17 00:00:00 2001 From: Peter Hebden Date: Sat, 6 Aug 2022 01:19:57 +0000 Subject: [PATCH] Remove unnecessary `use` from examples (#5583) # Objective `bevy::render::texture::ImageSettings` was added to prelude in #5566, so these `use` statements are unnecessary and the examples can be made a bit more concise. ## Solution Remove `use bevy::render::texture::ImageSettings` --- examples/2d/sprite_sheet.rs | 2 +- examples/2d/texture_atlas.rs | 2 +- examples/3d/shapes.rs | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/examples/2d/sprite_sheet.rs b/examples/2d/sprite_sheet.rs index 2d6fe13dfabb4f..ef91c3ea0f3a0a 100644 --- a/examples/2d/sprite_sheet.rs +++ b/examples/2d/sprite_sheet.rs @@ -1,7 +1,7 @@ //! Renders an animated sprite by loading all animation frames from a single image (a sprite sheet) //! into a texture atlas, and changing the displayed image periodically. -use bevy::{prelude::*, render::texture::ImageSettings}; +use bevy::prelude::*; fn main() { App::new() diff --git a/examples/2d/texture_atlas.rs b/examples/2d/texture_atlas.rs index 74599ab9295a5f..4889354da7c618 100644 --- a/examples/2d/texture_atlas.rs +++ b/examples/2d/texture_atlas.rs @@ -1,7 +1,7 @@ //! In this example we generate a new texture atlas (sprite sheet) from a folder containing //! individual sprites. -use bevy::{asset::LoadState, prelude::*, render::texture::ImageSettings}; +use bevy::{asset::LoadState, prelude::*}; fn main() { App::new() diff --git a/examples/3d/shapes.rs b/examples/3d/shapes.rs index f9d063bee06b92..354b156524e775 100644 --- a/examples/3d/shapes.rs +++ b/examples/3d/shapes.rs @@ -3,10 +3,7 @@ use bevy::{ prelude::*, - render::{ - render_resource::{Extent3d, TextureDimension, TextureFormat}, - texture::ImageSettings, - }, + render::render_resource::{Extent3d, TextureDimension, TextureFormat}, }; fn main() {