Skip to content

Commit 16cf328

Browse files
committed
ran cargo fmt & cargo clippy --fix
1 parent ae12d4f commit 16cf328

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/render/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use bevy::{
1212
Render, RenderApp, RenderSet,
1313
},
1414
};
15-
use bevy::ecs::entity::Entities;
1615

1716
#[cfg(not(feature = "atlas"))]
1817
use bevy::render::renderer::RenderDevice;
@@ -307,10 +306,7 @@ pub struct RemovedTileEntity(pub Entity);
307306
#[derive(Component)]
308307
pub struct RemovedMapEntity(pub Entity);
309308

310-
fn removal_helper(
311-
mut commands: Commands,
312-
mut removed_query: RemovedComponents<TilePos>,
313-
) {
309+
fn removal_helper(mut commands: Commands, mut removed_query: RemovedComponents<TilePos>) {
314310
for entity in removed_query.read() {
315311
commands.spawn(RemovedTileEntity(entity));
316312
}

src/render/texture_array_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl TextureArrayCache {
8686
"Expected image to have finished loading if \
8787
it is being extracted as a texture!",
8888
);
89-
let this_tile_size: TilemapTileSize = image.size_f32().try_into().unwrap();
89+
let this_tile_size: TilemapTileSize = image.size_f32().into();
9090
if this_tile_size != tile_size {
9191
panic!(
9292
"Expected all provided image assets to have size {tile_size:?}, \

0 commit comments

Comments
 (0)