Skip to content

Commit 0166bfc

Browse files
committed
Fix clippy warning
1 parent 2f2a834 commit 0166bfc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ gccjit = "2.8"
3333
[dev-dependencies]
3434
boml = "0.3.1"
3535
lang_tester = "0.8.0"
36+
tempfile = "3.20.0"
3637

3738
[profile.dev]
3839
# By compiling dependencies with optimizations, performing tests gets much faster.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ impl CodegenBackend for GccCodegenBackend {
205205
// NOTE: try the LTO frontend and check if it errors out. If so, do not embed the bitcode.
206206
{
207207
let temp_dir = TempDir::new().expect("cannot create temporary directory");
208-
let temp_file = temp_dir.into_path().join("result.asm");
208+
let temp_file = temp_dir.keep().join("result.asm");
209209
let context = Context::default();
210210
let object_file_path = temp_file.to_str().expect("path to str");
211211
context.compile_to_file(gccjit::OutputKind::ObjectFile, object_file_path);

0 commit comments

Comments
 (0)