Skip to content

Commit

Permalink
Fix missing reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNerma committed Feb 9, 2024
1 parent accb428 commit 0f94e4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/completion/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ mod tests {
let expected_history_size = command_line_history.len();
let mut history = FileBackedHistory::new(command_line_history.len())?;
for command_line in command_line_history {
history.save(new_history_item(command_line))?;
history.save(&new_history_item(command_line))?;
}
let input = "git s";
let mut sut = HistoryCompleter::new(&history);
Expand Down Expand Up @@ -144,7 +144,7 @@ mod tests {
) -> Result<()> {
let mut history = FileBackedHistory::new(history_items.len())?;
for history_item in history_items {
history.save(new_history_item(history_item))?;
history.save(&new_history_item(history_item))?;
}
let mut sut = HistoryCompleter::new(&history);
let actual: Vec<String> = sut
Expand Down

0 comments on commit 0f94e4b

Please sign in to comment.