Skip to content

Commit

Permalink
Allow deprecated for std::env::home_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Jan 6, 2025
1 parent 949cf8f commit 08b5170
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/src/home.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ pub fn cargo_home() -> Option<PathBuf> {
pub use home::home_dir;

#[rustversion::since(1.86)]
#[allow(
deprecated,
reason = "https://github.com/rust-lang/rust/pull/132515#discussion_r1829715262"
)]
pub use std::env::home_dir;

0 comments on commit 08b5170

Please sign in to comment.