aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2018-11-04 00:11:51 +0000
committerGitHub <noreply@github.com>2018-11-04 00:11:51 +0000
commit0b1754e73f5238a449a07979666a544877be9042 (patch)
treec0636fcc58264217c9077ac1e2985e1f8b6b7d29 /src/input.rs
parentd2f4972703fc95e20251796665feb00c768862d4 (diff)
downloadalacritty-0b1754e73f5238a449a07979666a544877be9042.tar.gz
alacritty-0b1754e73f5238a449a07979666a544877be9042.zip
Fix clippy issues
This resolves all existing clippy issues and removes some old `allow` annotations which aren't neccesary anymore.
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input.rs b/src/input.rs
index 5c4436bd..5235066b 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -320,10 +320,10 @@ impl RelaxedEq for ModifiersState {
// Make sure that modifiers in the config are always present,
// but ignore surplus modifiers.
fn relaxed_eq(&self, other: Self) -> bool {
- !((self.shift && !other.shift)
- || (self.ctrl && !other.ctrl)
- || (self.alt && !other.alt)
- || (self.logo && !other.logo))
+ (!self.logo || other.logo)
+ && (!self.alt || other.alt)
+ && (!self.ctrl || other.ctrl)
+ && (!self.shift || other.shift)
}
}