From 8adbe60e0063c1a89db961e84991048e1741ed9b Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 10 Dec 2023 21:39:14 +0100 Subject: [PATCH] Apply code style suggestion to src/x11.rs This applies a suggestion by @notgull Co-authored-by: John Nunley --- src/x11.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/x11.rs b/src/x11.rs index 253f29d..a5baa82 100644 --- a/src/x11.rs +++ b/src/x11.rs @@ -911,10 +911,8 @@ fn supported_visuals(c: &impl Connection) -> HashSet { .iter() .filter(|visual| { // Ignore grayscale or indexes / color palette visuals - matches!( - visual.class, - VisualClass::TRUE_COLOR | VisualClass::DIRECT_COLOR - ) + visual.class == VisualClass::TRUE_COLOR + || visual.class == VisualClass::DIRECT_COLOR }) .filter(|visual| { // Colors must be laid out as softbuffer expects