Skip to content

Commit 48337da

Browse files
authored
Use tempfile::TempDir::keep() instead of deprecated into_path() (#14784)
`tempfile` has deprecated `TempDir::into_path()` (replacing it by `TempDir::keep()` between version `3.3` which Clippy required and version `3.20` which is the latest semver-compatible version. Since Clippy doesn't use a `Cargo.lock` file, the latest version of `tempfile` is used which leads to CI failure. changelog: none r? @flip1995
2 parents 7f6d507 + 8f5dc85 commit 48337da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ clippy_lints = { path = "clippy_lints" }
2828
clippy_utils = { path = "clippy_utils" }
2929
rustc_tools_util = { path = "rustc_tools_util", version = "0.4.2" }
3030
clippy_lints_internal = { path = "clippy_lints_internal", optional = true }
31-
tempfile = { version = "3.3", optional = true }
31+
tempfile = { version = "3.20", optional = true }
3232
termize = "0.1"
3333
color-print = "0.3.4"
3434
anstream = "0.6.18"

tests/integration.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn integration_test() {
3030

3131
let repo_dir = tempfile::tempdir()
3232
.expect("couldn't create temp dir")
33-
.into_path()
33+
.keep()
3434
.join(crate_name);
3535

3636
let st = Command::new("git")

0 commit comments

Comments
 (0)