Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Oct 2, 2023
1 parent d233202 commit 184de2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ static NAME: &str = "Rust";

fn get_rustup_home(env: &HostEnvironment) -> Result<PathBuf, Error> {
Ok(host_env!("RUSTUP_HOME")
.map(|p| PathBuf::from(p))
.map(PathBuf::from)
.unwrap_or_else(|| env.home_dir.join(".rustup")))
}

Expand Down

0 comments on commit 184de2b

Please sign in to comment.