Skip to content

Commit

Permalink
Merge pull request StarArawn#472 from rparrett/let-else-fmt
Browse files Browse the repository at this point in the history
Fix let-else formatting
  • Loading branch information
StarArawn authored Sep 23, 2023
2 parents b173265 + 015bf69 commit cf2c7dc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions examples/helpers/tiled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,11 @@ pub fn process_loaded_maps(
// tilesets on each layer and allows differently-sized tile images in each tileset,
// this means we need to load each combination of tileset and layer separately.
for (tileset_index, tileset) in tiled_map.map.tilesets().iter().enumerate() {
let Some(tilemap_texture) = tiled_map
.tilemap_textures
.get(&tileset_index) else {
log::warn!("Skipped creating layer with missing tilemap textures.");
continue;
};
let Some(tilemap_texture) = tiled_map.tilemap_textures.get(&tileset_index)
else {
log::warn!("Skipped creating layer with missing tilemap textures.");
continue;
};

let tile_size = TilemapTileSize {
x: tileset.tile_width as f32,
Expand Down

0 comments on commit cf2c7dc

Please sign in to comment.