Skip to content

Commit

Permalink
Apply code style suggestion to src/x11.rs
Browse files Browse the repository at this point in the history
This applies a suggestion by @notgull

Co-authored-by: John Nunley <[email protected]>
  • Loading branch information
psychon and notgull committed Dec 11, 2023
1 parent 7e3407f commit 8adbe60
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/x11.rs
Original file line number Diff line number Diff line change
Expand Up @@ -911,10 +911,8 @@ fn supported_visuals(c: &impl Connection) -> HashSet<Visualid> {
.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
Expand Down

0 comments on commit 8adbe60

Please sign in to comment.