Skip to content

Commit acfb046

Browse files
authored
Merge pull request #706 from emmanuel-ferdman/master
Use `tempfile::TempDir::keep()` instead of deprecated `into_path()`
2 parents b15114f + 45e23b2 commit acfb046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl CodegenBackend for GccCodegenBackend {
208208
#[cfg(not(feature = "master"))]
209209
{
210210
let temp_dir = TempDir::new().expect("cannot create temporary directory");
211-
let temp_file = temp_dir.into_path().join("result.asm");
211+
let temp_file = temp_dir.keep().join("result.asm");
212212
let check_context = Context::default();
213213
check_context.set_print_errors_to_stderr(false);
214214
let _int128_ty = check_context.new_c_type(CType::UInt128t);

0 commit comments

Comments
 (0)