refactor progress

This commit is contained in:
Simon Gardling
2023-12-04 10:02:16 -05:00
parent f86d0b62d5
commit 159bb1122b
4 changed files with 64 additions and 118 deletions

View File

@@ -17,7 +17,7 @@ fn main() {
fn generate_hashmap() {
let path = Path::new(&env::var("OUT_DIR").unwrap()).join("codegen.rs");
let mut file = BufWriter::new(File::create(&path).expect("Could not create file"));
let mut file = BufWriter::new(File::create(path).expect("Could not create file"));
let string_hashmap =
compile_hashmap(SUPPORTED_FUNCTIONS.iter().map(|a| a.to_string()).collect());