corrected formatting of generated code

This commit is contained in:
Anton-4 2022-05-04 14:22:25 +02:00
parent 2845371c50
commit 2ec6f54776
No known key found for this signature in database
GPG Key ID: C954D6E0F9C0ABFD

View File

@ -39,7 +39,7 @@ fn main() {
fs::copy(&zig_libc_path, &out_file).unwrap();
// Generate some Rust code to indicate where the file is
let generated_rust = format!("pub const WASI_LIBC_PATH: &str = \"{}\";\n", out_file);
let generated_rust = format!("pub const WASI_LIBC_PATH: &str =\n\t\"{}\";\n", out_file);
fs::write("src/generated.rs", generated_rust).unwrap();
}