diff --git a/src/proto.rs b/src/proto.rs index d3ab5b3..2d9dbd6 100644 --- a/src/proto.rs +++ b/src/proto.rs @@ -15,7 +15,7 @@ static NAME: &str = "Rust"; fn get_rustup_home(env: &HostEnvironment) -> Result { Ok(host_env!("RUSTUP_HOME") - .map(|p| PathBuf::from(p)) + .map(PathBuf::from) .unwrap_or_else(|| env.home_dir.join(".rustup"))) }