Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
esamattis committed Sep 12, 2024
1 parent 2fa47d5 commit e4b58b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zsh_autocomplete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub enum CompletionItems<'a> {
Tasks(TaskList<'a>),
}

fn get_zsh_autocomplete_code(items: CompletionItems) -> String {
fn get_zsh_autocomplete_code(items: &CompletionItems) -> String {
let mut out = String::new();

let tasks = match items {
Expand Down Expand Up @@ -81,7 +81,7 @@ pub fn get_zsh_autocompletion(
_rbuffer: &str,
) -> String {
let items = get_completion_items(runners, lbuffer);
return get_zsh_autocomplete_code(items);
return get_zsh_autocomplete_code(&items);
}

#[cfg(test)]
Expand Down

0 comments on commit e4b58b8

Please sign in to comment.