Undeprecate env::home_dir
This commit is contained in:
@@ -641,11 +641,6 @@ impl Error for JoinPathsError {
|
|||||||
/// None => println!("Impossible to get your home dir!"),
|
/// 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]
|
#[must_use]
|
||||||
#[stable(feature = "env", since = "1.0.0")]
|
#[stable(feature = "env", since = "1.0.0")]
|
||||||
pub fn home_dir() -> Option<PathBuf> {
|
pub fn home_dir() -> Option<PathBuf> {
|
||||||
|
|||||||
Reference in New Issue
Block a user