mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Use tempfile::NamedTempFile in more places
This commit is contained in:
parent
2d066469ee
commit
4a601ffd4c
2 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ pub fn build_zig_host_native(
|
|||
|
||||
// TODO in the future when we have numbered releases, this
|
||||
// can go in ~/.cache/roc instead of writing it to a tempdir every time.
|
||||
let builtins_host_file = tempfile::tempfile().unwrap();
|
||||
let builtins_host_file = tempfile::NamedTempFile::new().unwrap();
|
||||
std::fs::write(builtins_host_file.path(), builtins_bytes)
|
||||
.expect("failed to write host builtins object to tempfile");
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue