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`
This commit is contained in:
		
							parent
							
								
									115211161b
								
							
						
					
					
						commit
						c27cc59e0d
					
				@ -1,7 +1,7 @@
 | 
				
			|||||||
//! Renders an animated sprite by loading all animation frames from a single image (a sprite sheet)
 | 
					//! 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.
 | 
					//! into a texture atlas, and changing the displayed image periodically.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use bevy::{prelude::*, render::texture::ImageSettings};
 | 
					use bevy::prelude::*;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
fn main() {
 | 
					fn main() {
 | 
				
			||||||
    App::new()
 | 
					    App::new()
 | 
				
			||||||
 | 
				
			|||||||
@ -1,7 +1,7 @@
 | 
				
			|||||||
//! In this example we generate a new texture atlas (sprite sheet) from a folder containing
 | 
					//! In this example we generate a new texture atlas (sprite sheet) from a folder containing
 | 
				
			||||||
//! individual sprites.
 | 
					//! individual sprites.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use bevy::{asset::LoadState, prelude::*, render::texture::ImageSettings};
 | 
					use bevy::{asset::LoadState, prelude::*};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
fn main() {
 | 
					fn main() {
 | 
				
			||||||
    App::new()
 | 
					    App::new()
 | 
				
			||||||
 | 
				
			|||||||
@ -3,10 +3,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
use bevy::{
 | 
					use bevy::{
 | 
				
			||||||
    prelude::*,
 | 
					    prelude::*,
 | 
				
			||||||
    render::{
 | 
					    render::render_resource::{Extent3d, TextureDimension, TextureFormat},
 | 
				
			||||||
        render_resource::{Extent3d, TextureDimension, TextureFormat},
 | 
					 | 
				
			||||||
        texture::ImageSettings,
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
fn main() {
 | 
					fn main() {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user