We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5e6bda commit 2adbfa9Copy full SHA for 2adbfa9
src/tools/remote-test-server/src/main.rs
@@ -83,12 +83,12 @@ fn main() {
83
};
84
85
let listener = t!(TcpListener::bind(bind_addr));
86
- let work: PathBuf = if cfg!(windows) {
87
- env::var_os("RUST_TEMP").expect("Set RUST_TEMP to your preferred temp folder").into()
88
- } else if cfg!(target_os = "android") {
+ let work: PathBuf = if cfg!(target_os = "android") {
89
"/data/tmp/work".into()
90
} else {
91
- "/tmp/work".into()
+ let mut temp_dir = env::temp_dir();
+ temp_dir.push("work");
+ temp_dir
92
93
println!("listening!");
94
0 commit comments