From 8575f7d3d61364d856675300e180bdd02c83fcc9 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Tue, 20 Apr 2021 23:04:32 +0100 Subject: [PATCH] No need to put static --- agb-image-converter/src/rust_generator.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agb-image-converter/src/rust_generator.rs b/agb-image-converter/src/rust_generator.rs index 5824ca78..d6f42469 100644 --- a/agb-image-converter/src/rust_generator.rs +++ b/agb-image-converter/src/rust_generator.rs @@ -13,7 +13,7 @@ pub(crate) fn generate_code( ) -> io::Result<()> { writeln!( output, - "pub const PALETTE_DATA: &'static [crate::display::palette16::Palette16] = &[", + "pub const PALETTE_DATA: &[crate::display::palette16::Palette16] = &[", )?; for palette in &results.optimised_palettes { @@ -33,7 +33,7 @@ pub(crate) fn generate_code( writeln!(output, "];")?; writeln!(output)?; - writeln!(output, "pub const TILE_DATA: &'static [u32] = &[",)?; + writeln!(output, "pub const TILE_DATA: &[u32] = &[",)?; let tile_size = tile_size.to_size(); @@ -76,7 +76,7 @@ pub(crate) fn generate_code( writeln!(output, "];")?; writeln!(output)?; - write!(output, "pub const PALETTE_ASSIGNMENT: &'static [u8] = &[")?; + write!(output, "pub const PALETTE_ASSIGNMENT: &[u8] = &[")?; for (i, assignment) in results.assignments.iter().enumerate() { if i % 16 == 0 {