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 authored Dec 10, 2023
1 parent 7e3407f commit c02b006
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/x11.rs
Original file line number Diff line number Diff line change
Expand Up @@ -911,10 +911,7 @@ fn supported_visuals(c: &impl Connection) -> HashSet<Visualid> {
.iter()

Check failure on line 911 in src/x11.rs

View workflow job for this annotation

GitHub Actions / Check_Formatting

Diff in /home/runner/work/softbuffer/softbuffer/src/x11.rs
.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 c02b006

Please sign in to comment.