fn toolchain_path(home: Option<String>, toolchain: Option<String>) -> Option<PathBuf> {
    match (home, toolchain) {
        (Some(home), Some(toolchain)) => {
            Some([home, String::from("toolchains"), toolchain].iter().collect::<PathBuf>())
        }
        _ => None,
    }
}
/// Try to generate the rustup toolchain path.
Try to generate the rustup toolchain path.
Try to generate the rustup toolchain path .
fn toolchain_path(home: Option<String>, toolchain: Option<String>) -> Option<PathBuf> {
    match (home, toolchain) {
        (Some(home), Some(toolchain)) => {
            Some([home, String::from("toolchains"), toolchain].iter().collect::<PathBuf>())
        }
        _ => None,
    }
}
fn toolchain_path ( home : Option < String > , toolchain : Option < String > ) -> Option < PathBuf > { match ( home , toolchain ) { ( Some ( home ) , Some ( toolchain ) ) => { Some ( [ home , String :: from ( " " ) , toolchain ] . iter ( ) . collect :: < PathBuf > ( ) ) } _ => None , } }
Try to generate the rustup toolchain path.
Try to generate the rustup toolchain path .
home
Option<String>
toolchain
Option<String>