mirror of
https://github.com/RubyMetric/chsrc
synced 2026-03-06 22:40:43 +08:00
Use chsrc_determine_chgtype()
This commit is contained in:
@@ -63,7 +63,8 @@ pl_rust_cargo_setsrc (char *option)
|
||||
|
||||
chsrc_note2 (xy_strjoin (3, "请您手动写入以下内容到 ", xy_normalize_path ("~/.cargo/config.toml"), " 文件中:"));
|
||||
p(file);
|
||||
ProgMode_ChgType = ProgMode_CMD_Reset ? ChgType_Reset : ChgType_Auto;
|
||||
|
||||
chsrc_determine_chgtype (ChgType_Auto);
|
||||
chsrc_conclude (&source);
|
||||
}
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ pl_rust_rustup_setsrc (char *option)
|
||||
chsrc_append_to_file (w, fishrc);
|
||||
}
|
||||
|
||||
ProgMode_ChgType = ProgMode_CMD_Reset ? ChgType_Reset : ChgType_Auto;
|
||||
chsrc_determine_chgtype (ChgType_Auto);
|
||||
chsrc_conclude (&source);
|
||||
chsrc_note2 ("请您重启终端使rustup环境变量生效");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user