Skip to content

Commit

Permalink
fix: clippy on 1.77.1 (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndd7xv authored Mar 31, 2024
1 parent d41ae70 commit 57688a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/windows/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ pub(crate) fn perform_search(
// the current offset would fit, and from that we either pick the index to the left or right
// depending on whether we're searching forwards or backwards from the current offset.
fn get_next_match_index(
search_offsets: &Vec<usize>,
search_offsets: &[usize],
current_offset: usize,
search_direction: &SearchDirection,
) -> usize {
Expand Down Expand Up @@ -175,7 +175,7 @@ mod tests {
#[test]
fn test_search() {
fn search(
search_offsets: &Vec<usize>,
search_offsets: &[usize],
current_offset: usize,
search_direction: &SearchDirection,
) -> usize {
Expand Down

0 comments on commit 57688a7

Please sign in to comment.