mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.rs b/build.rs
index 3921cad..0f28ac0 100644
--- a/build.rs
+++ b/build.rs
@@ -61,7 +61,7 @@ fn main() {
let y = new.height();
buf.write_all(&new.into_raw()).unwrap();
writeln!($ext,
- r#" "{path}" => r!(RgbaImage::from_vec({x}, {y}, include_bytes!(concat!(env!("OUT_DIR"), "/{n}-{}")).to_vec()).unwrap()),"#,
+ r#" "{path}" => r!(unsafe {{ RgbaImage::from_vec({x}, {y}, include_bytes!(concat!(env!("OUT_DIR"), "/{n}-{}")).to_vec()).unwrap_unchecked() }}),"#,
stringify!($ext)
).unwrap();
};