We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2dd829 commit af7280bCopy full SHA for af7280b
library/std/tests/env.rs
@@ -1,6 +1,5 @@
1
use std::env::*;
2
use std::ffi::{OsStr, OsString};
3
-use std::path::PathBuf;
4
5
use rand::distributions::Alphanumeric;
6
use rand::{thread_rng, Rng};
@@ -82,6 +81,8 @@ fn test_env_set_var() {
82
81
#[cfg_attr(any(target_os = "emscripten", target_env = "sgx"), ignore)]
83
#[allow(deprecated)]
84
fn env_home_dir() {
+ use std::path::PathBuf;
85
+
86
fn var_to_os_string(var: Result<String, VarError>) -> Option<OsString> {
87
match var {
88
Ok(var) => Some(OsString::from(var)),
0 commit comments