fn delete_multirust_bin() {
    use rustup_utils::utils;
    use std::env::consts::EXE_SUFFIX;
    use std::fs;

    if let Ok(home) = utils::cargo_home() {
        let legacy_bin = home.join(format!("bin/multirust{}", EXE_SUFFIX));
        if legacy_bin.exists() {
            let _ = fs::remove_file(legacy_bin);
        }
    }
}
// rustup used to be called 'multirust'. This deletes the old bin.
rustup used to be called 'multirust'. This deletes the old bin.
rustup used to be called ' multirust ' . This deletes the old bin .
fn delete_multirust_bin() {
    use rustup_utils::utils;
    use std::env::consts::EXE_SUFFIX;
    use std::fs;
    if let Ok(home) = utils::cargo_home() {
        let legacy_bin = home.join(format!("bin/multirust{}", EXE_SUFFIX));
        if legacy_bin.exists() {
            let _ = fs::remove_file(legacy_bin);
        }
    }
}
fn delete_multirust_bin ( ) { use rustup_utils :: utils ; use std :: env :: consts :: EXE_SUFFIX ; use std :: fs ; if let Ok ( home ) = utils :: cargo_home ( ) { let legacy_bin = home . join ( format ! ( " " EXE_SUFFIX ) ) ; if legacy_bin . exists ( ) { let _ = fs :: remove_file ( legacy_bin ) ; } } }
rustup used to be called 'multirust'.
rustup used to be called ' multirust ' .