From 984186f3768d64c8395104502aee3b32a51f4df9 Mon Sep 17 00:00:00 2001 From: Mikachu2333 Date: Sat, 4 Oct 2025 16:34:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20`pl=5Fwrite=5Frus?= =?UTF-8?q?t=5Fconfig`=20=E5=A2=9E=E5=8A=A0=E5=89=8D=E7=BC=80=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E5=91=BD=E5=90=8D=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/recipe/lang/Rust/Cargo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/recipe/lang/Rust/Cargo.c b/src/recipe/lang/Rust/Cargo.c index c1f2bce..e4401f6 100644 --- a/src/recipe/lang/Rust/Cargo.c +++ b/src/recipe/lang/Rust/Cargo.c @@ -106,7 +106,7 @@ pl_rust_cargo_getsrc (char *option) void -write_rust_config (const char *path, const char *url) +pl_write_rust_config (const char *path, const char *url) { remove (path); char *content = RAWSTR_pl_rust_cargo_config; @@ -143,7 +143,7 @@ pl_rust_cargo_setsrc (char *option) XyStrFindResult_t result_has_mirror = xy_str_find (raw_content, "replace-with"); if (!result_has_mirror.found) { - write_rust_config (cargo_config_file, source.url); + pl_write_rust_config (cargo_config_file, source.url); goto finish; } @@ -156,7 +156,7 @@ pl_rust_cargo_setsrc (char *option) XyStrFindResult_t result_mirror = xy_str_find (raw_content, xy_strcat (3, "[source.", mirror_name, "]")); if (!result_mirror.found) { - write_rust_config (cargo_config_file, source.url); + pl_write_rust_config (cargo_config_file, source.url); goto finish; } @@ -164,7 +164,7 @@ pl_rust_cargo_setsrc (char *option) mirror_url = xy_str_gsub (mirror_url, " ", ""); if (!xy_str_find (mirror_url, "registry").found) { - write_rust_config (cargo_config_file, source.url); + pl_write_rust_config (cargo_config_file, source.url); goto finish; } mirror_url = xy_str_delete_prefix (mirror_url, "registry=\""); @@ -176,7 +176,7 @@ pl_rust_cargo_setsrc (char *option) goto finish; } - write_rust_config (cargo_config_file, source.url); + pl_write_rust_config (cargo_config_file, source.url); goto finish; finish: