Run rustfmt on modified files in agb

This commit is contained in:
Gwilym Kuiper 2021-07-21 22:47:10 +01:00
parent 061b8be368
commit 21a11a4e41
3 changed files with 9 additions and 5 deletions

View file

@ -1,5 +1,5 @@
use agb_image_converter::include_gfx;
use crate::display::tiled0::Tiled0;
use agb_image_converter::include_gfx;
include_gfx!("gfx/agb_logo.toml");

View file

@ -16,14 +16,14 @@ pub mod example_logo;
pub mod object;
/// Palette type.
pub mod palette16;
/// Data produced by agb-image-converter
pub mod tile_data;
/// Graphics mode 0. Four regular backgrounds.
pub mod tiled0;
/// Syscall for waiting for vblank.
pub mod vblank;
/// Giving out graphics mode.
pub mod video;
/// Data produced by agb-image-converter
pub mod tile_data;
const DISPLAY_CONTROL: MemoryMapped<u16> = unsafe { MemoryMapped::new(0x0400_0000) };
const DISPLAY_STATUS: MemoryMapped<u16> = unsafe { MemoryMapped::new(0x0400_0004) };

View file

@ -7,11 +7,15 @@ pub struct TileData {
}
impl TileData {
pub const fn new(palettes: &'static [Palette16], tiles: &'static [u32], palette_assignments: &'static [u8]) -> Self {
pub const fn new(
palettes: &'static [Palette16],
tiles: &'static [u32],
palette_assignments: &'static [u8],
) -> Self {
TileData {
palettes,
tiles,
palette_assignments,
}
}
}
}