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 | |
parent | b0bc2a2440287268ca47ecf618c73766db9a2586 (diff) | |
download | alacritty-4dd70ba3a155d1eebe38bcd5a5c4c03ca09f2fea.tar.gz alacritty-4dd70ba3a155d1eebe38bcd5a5c4c03ca09f2fea.zip |
Fix clippy warnings
Diffstat (limited to 'alacritty_terminal')
-rw-r--r-- | alacritty_terminal/src/lib.rs | 2 | ||||
-rw-r--r-- | alacritty_terminal/src/term/search.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/alacritty_terminal/src/lib.rs b/alacritty_terminal/src/lib.rs index 5f80e283..c1ba3690 100644 --- a/alacritty_terminal/src/lib.rs +++ b/alacritty_terminal/src/lib.rs @@ -1,7 +1,7 @@ //! Alacritty - The GPU Enhanced Terminal. #![warn(rust_2018_idioms, future_incompatible)] -#![deny(clippy::all, clippy::if_not_else, clippy::enum_glob_use, clippy::wrong_pub_self_convention)] +#![deny(clippy::all, clippy::if_not_else, clippy::enum_glob_use)] #![cfg_attr(feature = "cargo-clippy", deny(warnings))] pub mod ansi; 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 |