From faa46a4f32b5ddebbcf53f81dbf56f676c212cac Mon Sep 17 00:00:00 2001 From: kouta Date: Thu, 11 Jul 2024 14:56:43 -0300 Subject: [PATCH] Fix linting issues --- agb/src/display/tiled/map.rs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/agb/src/display/tiled/map.rs b/agb/src/display/tiled/map.rs index e3e46d10..c5269e49 100644 --- a/agb/src/display/tiled/map.rs +++ b/agb/src/display/tiled/map.rs @@ -52,8 +52,7 @@ pub trait TiledMap: TiledMapTypes { fn size(&self) -> Self::Size; } -impl TiledMap for AffineMap -{ +impl TiledMap for AffineMap { fn clear(&mut self, vram: &mut VRamManager) { let colours = self.colours(); @@ -88,12 +87,13 @@ impl TiledMap for AffineMap let screenblock_memory = self.screenblock_memory() as *mut u8; if *self.tiles_dirty() { - let tiledata: Vec = self.tiles_mut().iter().map(|a| a.tile_index(TileFormat::EightBpp).raw_index() as u8).collect(); + let tiledata: Vec = self + .tiles_mut() + .iter() + .map(|a| a.tile_index(TileFormat::EightBpp).raw_index() as u8) + .collect(); unsafe { - screenblock_memory.copy_from( - tiledata.as_ptr(), - self.map_size().num_tiles(), - ); + screenblock_memory.copy_from(tiledata.as_ptr(), self.map_size().num_tiles()); } } @@ -116,8 +116,7 @@ impl TiledMap for AffineMap self.map_size() } } -impl TiledMap for RegularMap -{ +impl TiledMap for RegularMap { fn clear(&mut self, vram: &mut VRamManager) { let colours = self.colours();