@@ -10,12 +10,12 @@ pl_rust_cargo_prelude (void)
1010 chef_prep_this (pl_rust_cargo , gsr );
1111
1212 chef_set_created_on (this , "2023-08-30" );
13- chef_set_last_updated (this , "2025-09-18 " );
13+ chef_set_last_updated (this , "2025-10-03 " );
1414 chef_set_sources_last_updated (this , "2025-06-18" );
1515
1616 chef_set_chef (this , NULL );
17- chef_set_cooks (this , 2 , "@happy-game" , "@ccmywish" );
18- chef_set_sauciers (this , 1 , "@Mikachu2333" );
17+ chef_set_cooks (this , 1 , "@ccmywish" );
18+ chef_set_sauciers (this , 2 , "@happy-game" , "@Mikachu2333" );
1919
2020 chef_allow_local_mode (this , PartiallyCan , "可以基于本项目换源吗?请帮助确认" , "Can it change sources based on this project? Please help confirm" );
2121 chef_forbid_english (this );
@@ -63,14 +63,7 @@ pl_rust_cargo_note_get_src_default ()
6363void
6464pl_rust_cargo_note_get_src_mirror (char * url , bool sparse )
6565{
66- if (ENGLISH )
67- {
68- chsrc_note2 ("Custom source found:" );
69- }
70- else
71- {
72- chsrc_note2 ("已找到自定义源:" );
73- }
66+ chsrc_note2 (ENGLISH ? "Custom source found: " : "已找到自定义源:" );
7467 say (xy_2strcat (url , sparse ? " (sparse)" : "" ));
7568}
7669
@@ -81,7 +74,7 @@ pl_rust_cargo_getsrc (char *option)
8174
8275 char * raw_content = xy_file_to_str (cargo_config_file );
8376 char * formatted_content = xy_str_gsub (raw_content , " " , "" );
84- formatted_content = xy_str_gsub (raw_content , "\"" , "" );
77+ formatted_content = xy_str_gsub (formatted_content , "'" , "\ "" );
8578 free (raw_content );
8679
8780 XyStrFindResult_t result_has_mirror = xy_str_find (formatted_content , "replace-with" );
0 commit comments