diff options
author | Christian Duerr <contact@christianduerr.com> | 2021-07-03 03:06:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-03 03:06:52 +0000 |
commit | 4dd70ba3a155d1eebe38bcd5a5c4c03ca09f2fea (patch) | |
tree | 5fd25b77c2d46279cf3e23b699d47e06f02d43e4 /alacritty_terminal/src/term/search.rs | |
parent | b0bc2a2440287268ca47ecf618c73766db9a2586 (diff) | |
download | alacritty-4dd70ba3a155d1eebe38bcd5a5c4c03ca09f2fea.tar.gz alacritty-4dd70ba3a155d1eebe38bcd5a5c4c03ca09f2fea.zip |
Fix clippy warnings
Diffstat (limited to 'alacritty_terminal/src/term/search.rs')
-rw-r--r-- | alacritty_terminal/src/term/search.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/alacritty_terminal/src/term/search.rs b/alacritty_terminal/src/term/search.rs index bf7f43d1..ff6060af 100644 --- a/alacritty_terminal/src/term/search.rs +++ b/alacritty_terminal/src/term/search.rs @@ -88,14 +88,14 @@ impl<T> Term<T> { _ => end.sub(self, Boundary::None, 1), }; - let mut regex_iter = RegexIter::new(start, end, Direction::Right, &self, dfas).peekable(); + let mut regex_iter = RegexIter::new(start, end, Direction::Right, self, dfas).peekable(); // Check if there's any match at all. let first_match = regex_iter.peek()?.clone(); let regex_match = regex_iter .find(|regex_match| { - let match_point = Self::match_side(®ex_match, side); + let match_point = Self::match_side(regex_match, side); // If the match's point is beyond the origin, we're done. match_point.line < start.line @@ -127,14 +127,14 @@ impl<T> Term<T> { _ => end.add(self, Boundary::None, 1), }; - let mut regex_iter = RegexIter::new(start, end, Direction::Left, &self, dfas).peekable(); + let mut regex_iter = RegexIter::new(start, end, Direction::Left, self, dfas).peekable(); // Check if there's any match at all. let first_match = regex_iter.peek()?.clone(); let regex_match = regex_iter .find(|regex_match| { - let match_point = Self::match_side(®ex_match, side); + let match_point = Self::match_side(regex_match, side); // If the match's point is beyond the origin, we're done. match_point.line > start.line |