From 4dd70ba3a155d1eebe38bcd5a5c4c03ca09f2fea Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sat, 3 Jul 2021 03:06:52 +0000 Subject: Fix clippy warnings --- alacritty_terminal/src/lib.rs | 2 +- alacritty_terminal/src/term/search.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'alacritty_terminal') 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 Term { _ => 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 Term { _ => 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 -- cgit v1.2.3-54-g00ecf