浏览代码

Use 'a instead of 'static in framebuffer.rs

Columbus240 6 年之前
父节点
当前提交
d086a17928
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/framebuffer.rs

+ 1 - 1
src/framebuffer.rs

@@ -55,7 +55,7 @@ pub fn framebuffer_tag<'a>(tag: &'a Tag) -> FramebufferTag<'a> {
             let num_colors = reader.read_u32();
             let palette = unsafe {
                 slice::from_raw_parts(reader.read_u32() as usize as *const FramebufferColor, num_colors as usize)
-            } as &'static [FramebufferColor];
+            } as &'a [FramebufferColor];
             FramebufferType::Indexed { palette }
         },
         1 => {