Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tronical committed Mar 20, 2024
1 parent 3f1c287 commit 4a092b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/control/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,9 @@ pub trait Device: super::Device {
where
B: buffer::PlanarBuffer + ?Sized,
{
let modifier =
planar_buffer.modifier().filter(|modifier| !matches!(modifier, DrmModifier::Invalid));
let modifier = planar_buffer
.modifier()
.filter(|modifier| !matches!(modifier, DrmModifier::Invalid));
let has_modifier = flags.contains(FbCmd2Flags::MODIFIERS);
assert!((has_modifier && modifier.is_some()) || (!has_modifier && modifier.is_none()));
let modifier = if let Some(modifier) = modifier {
Expand Down

0 comments on commit 4a092b0

Please sign in to comment.