Skip to content

Commit 61626d2

Browse files
committed
Replace tempdir with tempfile
1 parent aa9ea04 commit 61626d2

File tree

3 files changed

+18
-62
lines changed

3 files changed

+18
-62
lines changed

compiler/base/orchestrator/Cargo.lock

+14-58
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/base/orchestrator/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ mach2 = { version = "0.4.1", default-features = false }
3333
assert_matches = "1.5.0"
3434
assertables = "7.0.1"
3535
once_cell = "1.18.0"
36-
tempdir = "0.3.7"
36+
tempfile = "3.10.1"
3737
tracing-subscriber = "0.3.17"

compiler/base/orchestrator/src/coordinator.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2786,7 +2786,7 @@ mod tests {
27862786
use futures::future::{join, try_join_all};
27872787
use once_cell::sync::Lazy;
27882788
use std::{env, sync::Once};
2789-
use tempdir::TempDir;
2789+
use tempfile::TempDir;
27902790

27912791
use super::*;
27922792

@@ -2820,8 +2820,8 @@ mod tests {
28202820
assert!(output.status.success(), "Build failed");
28212821
});
28222822

2823-
let project_dir =
2824-
TempDir::new("playground").expect("Failed to create temporary project directory");
2823+
let project_dir = TempDir::with_prefix("playground")
2824+
.expect("Failed to create temporary project directory");
28252825

28262826
for channel in Channel::ALL {
28272827
let channel = channel.to_str();

0 commit comments

Comments
 (0)