Use tempfile::NamedTempFile in more places

This commit is contained in:
Richard Feldman 2022-11-22 18:40:06 -05:00
parent 2d066469ee
commit 4a601ffd4c
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
2 changed files with 2 additions and 2 deletions

View file

@ -193,7 +193,7 @@ pub fn helper(
.expect("failed to build output object");
std::fs::write(&app_o_file, module_out).expect("failed to write object to file");
let builtins_host_file = tempfile::tempfile().unwrap();
let builtins_host_file = tempfile::NamedTempFile::new().unwrap();
std::fs::write(builtins_host_file.path(), bitcode::HOST_UNIX)
.expect("failed to write host builtins object to tempfile");