Minor edit

pull/2/head
Mark 2023-06-12 22:56:09 -07:00
parent 5739c465ff
commit 90d4e2e156
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
1 changed files with 2 additions and 2 deletions

View File

@ -230,8 +230,8 @@ fn main() -> Result<(), ()>{
let out_dir = env::var_os("OUT_DIR").unwrap();
let dest_path = Path::new(&out_dir).join("units.rs");
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-changed=units.toml");
println!("cargo:rerun-if-changed=buildscript/build.rs");
println!("cargo:rerun-if-changed=buildscript/units.toml");
let units = include_str!("units.toml").parse::<Table>().unwrap();
let toml::Value::Array(units) = &units["unit"] else {panic!()};