Skip to content

Commit 8ae6416

Browse files
committed
Fix clippy warning
1 parent 73feaad commit 8ae6416

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ gccjit = "2.7"
3131
[dev-dependencies]
3232
boml = "0.3.1"
3333
lang_tester = "0.8.0"
34-
tempfile = "3.20"
34+
tempfile = "3.20.0"
3535

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

0 commit comments

Comments
 (0)