fn cargo() -> Result<PathBuf> {
    Ok(home_dir()
        .ok_or_else(|| {
            anyhow!("unable to find home directory, required to find cargo without PATH")
        })?
        .canonicalize()?
        .join(".cargo")
        .join("bin")
        .join("cargo"))
}
// cargo may not be in the path yet
cargo may not be in the path yet
cargo may not be in the path yet
fn cargo() -> Result<PathBuf> {
    Ok(home_dir()
        .ok_or_else(|| {
            anyhow!("unable to find home directory, required to find cargo without PATH")
        })?
        .canonicalize()?
        .join(".cargo")
        .join("bin")
        .join("cargo"))
}
fn cargo ( ) -> Result < PathBuf > { Ok ( home_dir ( ) . ok_or_else ( | | { anyhow ! ( " " ) } ) ? . canonicalize ( ) ? . join ( " " ) . join ( " " ) . join ( " " ) ) }
cargo may not be in the path yet
cargo may not be in the path yet