Skip to content

Commit cec0aea

Browse files
committed
Fix clippy warning
1 parent 3b7ee43 commit cec0aea

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
@@ -207,7 +207,7 @@ impl CodegenBackend for GccCodegenBackend {
207207
// NOTE: try the LTO frontend and check if it errors out. If so, do not embed the bitcode.
208208
{
209209
let temp_dir = TempDir::new().expect("cannot create temporary directory");
210-
let temp_file = temp_dir.into_path().join("result.asm");
210+
let temp_file = temp_dir.keep().join("result.asm");
211211
let context = Context::default();
212212
let object_file_path = temp_file.to_str().expect("path to str");
213213
context.compile_to_file(gccjit::OutputKind::ObjectFile, object_file_path);

0 commit comments

Comments
 (0)