Skip to content

Commit d5087b1

Browse files
committed
View the correct config file for cargo
[GitHub #45]
1 parent cade465 commit d5087b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/chsrc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ pl_go_setsrc (char *option)
429429
void
430430
pl_rust_getsrc (char *option)
431431
{
432-
chsrc_view_file ("~/.cargo");
432+
chsrc_view_file ("~/.cargo/config.toml");
433433
}
434434

435435
/**
@@ -438,7 +438,7 @@ pl_rust_getsrc (char *option)
438438
void
439439
pl_rust_setsrc (char *option)
440440
{
441-
SourceInfo source;
441+
SourceInfo source;
442442
chsrc_yield_source (pl_rust);
443443
chsrc_confirm_source (&source);
444444

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

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

0 commit comments

Comments
 (0)