@@ -47,7 +47,9 @@ pub fn home_dir_with_env(env: &dyn Env) -> Option<PathBuf> {
47
47
env. home_dir ( )
48
48
}
49
49
50
- /// Variant of `cargo_home` where the environment source is parameterized. This is
50
+ /// Variant of `cargo_home` where the environment source is parameterized.
51
+ ///
52
+ /// This is
51
53
/// specifically to support in-process testing scenarios as environment
52
54
/// variables and user home metadata are normally process global state. See the
53
55
/// [`Env`] trait.
@@ -57,7 +59,9 @@ pub fn cargo_home_with_env(env: &dyn Env) -> io::Result<PathBuf> {
57
59
}
58
60
59
61
/// Variant of `cargo_home_with_cwd` where the environment source is
60
- /// parameterized. This is specifically to support in-process testing scenarios
62
+ /// parameterized.
63
+ ///
64
+ /// This is specifically to support in-process testing scenarios
61
65
/// as environment variables and user home metadata are normally process global
62
66
/// state. See the `OsEnv` trait.
63
67
pub fn cargo_home_with_cwd_env ( env : & dyn Env , cwd : & Path ) -> io:: Result < PathBuf > {
@@ -77,7 +81,9 @@ pub fn cargo_home_with_cwd_env(env: &dyn Env, cwd: &Path) -> io::Result<PathBuf>
77
81
}
78
82
79
83
/// Variant of `cargo_home_with_cwd` where the environment source is
80
- /// parameterized. This is specifically to support in-process testing scenarios
84
+ /// parameterized.
85
+ ///
86
+ /// This is specifically to support in-process testing scenarios
81
87
/// as environment variables and user home metadata are normally process global
82
88
/// state. See the `OsEnv` trait.
83
89
pub fn rustup_home_with_env ( env : & dyn Env ) -> io:: Result < PathBuf > {
@@ -86,7 +92,9 @@ pub fn rustup_home_with_env(env: &dyn Env) -> io::Result<PathBuf> {
86
92
}
87
93
88
94
/// Variant of `cargo_home_with_cwd` where the environment source is
89
- /// parameterized. This is specifically to support in-process testing scenarios
95
+ /// parameterized.
96
+ ///
97
+ /// This is specifically to support in-process testing scenarios
90
98
/// as environment variables and user home metadata are normally process global
91
99
/// state. See the `OsEnv` trait.
92
100
pub fn rustup_home_with_cwd_env ( env : & dyn Env , cwd : & Path ) -> io:: Result < PathBuf > {
0 commit comments