Should be static

This commit is contained in:
Gwilym Inzani 2024-03-27 09:30:41 +00:00
parent f4efaf67a4
commit fa1de1fab7
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ use agb::{
use core::fmt::Write;
const FONT: Font = include_font!("examples/font/ark-pixel-10px-proportional-ja.ttf", 10);
static FONT: Font = include_font!("examples/font/ark-pixel-10px-proportional-ja.ttf", 10);
#[agb::entry]
fn main(mut gba: agb::Gba) -> ! {

View file

@ -279,7 +279,7 @@ impl<'a, 'b> TextRenderer<'b> {
mod tests {
use super::*;
use crate::display::tiled::{TileFormat, TiledMap};
const FONT: Font = crate::include_font!("examples/font/yoster.ttf", 12);
static FONT: Font = crate::include_font!("examples/font/yoster.ttf", 12);
#[test_case]
fn font_display(gba: &mut crate::Gba) {