Skip to content

Commit 6dcda77

Browse files
Recommend the home crate in env::home_dir()'s deprecation
1 parent 77e24f9 commit 6dcda77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/std/src/env.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ impl Error for JoinPathsError {
569569
/// The 'HOME' environment variable is not standard on Windows, and may not produce
570570
/// desired results; for instance, under Cygwin or Mingw it will return `/home/you`
571571
/// when it should return `C:\Users\you`.
572+
/// Consider using a crate from crates.io such as [`home`](https://crates.io/crates/home).
572573
///
573574
/// # Examples
574575
///
@@ -583,7 +584,7 @@ impl Error for JoinPathsError {
583584
#[deprecated(
584585
since = "1.29.0",
585586
note = "This function's behavior may be unexpected on Windows. \
586-
Consider using a crate from crates.io instead."
587+
Consider using a crate from crates.io such as [`home`](https://crates.io/crates/home)."
587588
)]
588589
#[must_use]
589590
#[stable(feature = "env", since = "1.0.0")]

0 commit comments

Comments
 (0)