Skip to content

Commit

Permalink
View the correct config file for cargo
Browse files Browse the repository at this point in the history
[GitHub #45]
  • Loading branch information
ccmywish committed Jul 22, 2024
1 parent cade465 commit d5087b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/chsrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ pl_go_setsrc (char *option)
void
pl_rust_getsrc (char *option)
{
chsrc_view_file ("~/.cargo");
chsrc_view_file ("~/.cargo/config.toml");
}

/**
Expand All @@ -438,7 +438,7 @@ pl_rust_getsrc (char *option)
void
pl_rust_setsrc (char *option)
{
SourceInfo source;
SourceInfo source;
chsrc_yield_source (pl_rust);
chsrc_confirm_source (&source);

Expand All @@ -449,7 +449,7 @@ pl_rust_setsrc (char *option)
"[source.mirror]\n"
"registry = \"sparse+", source.url, "\"");

chsrc_warn (xy_strjoin (3, "请您手动写入以下内容到 ", xy_uniform_path("~/.cargo/config.toml"), " 文件中:"));
chsrc_warn (xy_strjoin (3, "请您手动写入以下内容到 ", xy_uniform_path ("~/.cargo/config.toml"), " 文件中:"));
puts (file);
chsrc_say_lastly (&source, ChsrcTypeManual);
}
Expand Down

0 comments on commit d5087b1

Please sign in to comment.