fix: modules

This commit is contained in:
iff 2024-12-08 15:33:43 +01:00
parent 5aebf867c1
commit fedee1dc8d
12 changed files with 54 additions and 39 deletions

View file

@ -207,7 +207,10 @@ pub fn typo(suggest: &mut String, replace_list: &mut Vec<TokenStream2>) {
&function[function.find(',').unwrap() + 1..function.len() - 1],
"\")"
);
format!("suggest_typo(&split[{}], {}, executables)", string_index, function)
format!(
"suggest_typo(&split[{}], {}, executables)",
string_index, function
)
} else {
let string_match_list = match_list.join("\".to_string(), \"");
let string_match_list = format!("\"{}\".to_string()", string_match_list);