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:
Integral 2024-12-14 16:53:03 +00:00 committed by iff
parent 7c74d13705
commit 7c7cc4d285
5 changed files with 7 additions and 11 deletions

View file

@ -232,7 +232,7 @@ pub fn elevate(data: &mut Data, command: &mut String) {
pub fn add_candidates_no_dup(
command: &str,
candidates: &mut Vec<String>,
new_candidates: &Vec<String>,
new_candidates: &[String],
) {
for candidate in new_candidates {
let candidate = candidate.trim();