fn make_environment_compatible() {
    let ref vars = ["HOME", "TOOLCHAIN", "DIST_ROOT", "UPDATE_ROOT", "GPG_KEY"];
    for var in vars {
        let ref mvar = format!("MULTIRUST_{}", var);
        let ref rvar = format!("RUSTUP_{}", var);
        let mval = env::var_os(mvar);
        let rval = env::var_os(rvar);

        match (mval, rval) {
            (Some(mval), None) => {
                env::set_var(rvar, mval);
                warn!("environment variable {} is deprecated. Use {}.", mvar, rvar);
            }
            _ => (),
        }
    }
}
// Convert any MULTIRUST_ env vars to RUSTUP_ and warn about them
Convert any MULTIRUST_ env vars to RUSTUP_ and warn about them
Convert any MULTIRUST_ env vars to RUSTUP_ and warn about them
fn make_environment_compatible() {
    let ref vars = ["HOME", "TOOLCHAIN", "DIST_ROOT", "UPDATE_ROOT", "GPG_KEY"];
    for var in vars {
        let ref mvar = format!("MULTIRUST_{}", var);
        let ref rvar = format!("RUSTUP_{}", var);
        let mval = env::var_os(mvar);
        let rval = env::var_os(rvar);
        match (mval, rval) {
            (Some(mval), None) => {
                env::set_var(rvar, mval);
                warn!("environment variable {} is deprecated. Use {}.", mvar, rvar);
            }
            _ => (),
        }
    }
}
fn make_environment_compatible ( ) { let ref vars = [ " " , " " , " " , " " , " " ] ; for var in vars { let ref mvar = format ! ( " " var ) ; let ref rvar = format ! ( " " var ) ; let mval = env :: var_os ( mvar ) ; let rval = env :: var_os ( rvar ) ; match ( mval , rval ) { ( Some ( mval ) , None ) => { env :: set_var ( rvar , mval ) ; warn ! ( " " mvar rvar ) ; } _ => ( ) , } } }
Convert any MULTIRUST_ env vars to RUSTUP_ and warn about them
Convert any MULTIRUST_ env vars to RUSTUP_ and warn about them