mindustry logic execution, map- and schematic- parsing and rendering
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | build.rs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ [package] name = "mindus" -version = "1.5.1" +version = "1.5.2" edition = "2021" description = "A library for working with mindustry data formats (eg schematics and maps) (fork of plandustry)" authors = [ @@ -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(); }; |