From 0b1754e73f5238a449a07979666a544877be9042 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sun, 4 Nov 2018 00:11:51 +0000 Subject: Fix clippy issues This resolves all existing clippy issues and removes some old `allow` annotations which aren't neccesary anymore. --- src/input.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/input.rs') 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) } } -- cgit