Undeprecate env::home_dir

This commit is contained in:
Arlo Siemsen
2025-02-20 11:47:14 -06:00
parent 28b83ee596
commit 2c752bcf55

View File

@@ -641,11 +641,6 @@ impl Error for JoinPathsError {
/// None => println!("Impossible to get your home dir!"),
/// }
/// ```
#[deprecated(
since = "1.29.0",
note = "This function's behavior may be unexpected on Windows. \
Consider using a crate from crates.io instead."
)]
#[must_use]
#[stable(feature = "env", since = "1.0.0")]
pub fn home_dir() -> Option<PathBuf> {