mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 14:30:10 +01:00
refactor: replace Vec<T> with &[T] in function parameters (codeberg #7)
Reviewed-on: https://codeberg.org/iff/pay-respects/pulls/7 Co-authored-by: Integral <integral@member.fsf.org> Co-committed-by: Integral <integral@member.fsf.org>
This commit is contained in:
parent
7c74d13705
commit
7c7cc4d285
5 changed files with 7 additions and 11 deletions
|
|
@ -69,7 +69,7 @@ pub fn split_command(command: &str) -> Vec<String> {
|
|||
split_command
|
||||
}
|
||||
|
||||
pub fn suggest_typo(typos: &[String], candidates: Vec<String>, executables: &[String]) -> String {
|
||||
pub fn suggest_typo(typos: &[String], candidates: &[String], executables: &[String]) -> String {
|
||||
let mut suggestions = Vec::new();
|
||||
for typo in typos {
|
||||
let typo = typo.as_str();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue