]> git.nega.tv - josh/narcissus/commitdiff
shark-shaders: Remove unnecessary lifetime annotation
authorJoshua Simmons <josh@nega.tv>
Mon, 29 Apr 2024 18:12:52 +0000 (20:12 +0200)
committerJoshua Simmons <josh@nega.tv>
Mon, 29 Apr 2024 18:12:52 +0000 (20:12 +0200)
title/shark-shaders/build.rs

index 43db457d06e395b710608120c88895fabe2858c9..4934ede0a18f710113da1c410284ea8e6dd39fe4 100644 (file)
@@ -79,7 +79,7 @@ fn main() {
     for shader in SHADERS {
         writeln!(
             file,
-            "pub const {}_{}_SPV: &'static [u8] = &SpirvBytes(*include_bytes!(\"{out_dir}/{}.{}.spv\")).0;",
+            "pub const {}_{}_SPV: &[u8] = &SpirvBytes(*include_bytes!(\"{out_dir}/{}.{}.spv\")).0;",
             shader.name.to_ascii_uppercase(),
             shader.stage.name().to_ascii_uppercase(),
             shader.name,