[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2025-07-26 16:52:49 +00:00 committed by Simon Hausmann
parent 43acb069b7
commit c50f7ba73b
2 changed files with 6 additions and 10 deletions

View file

@ -35,15 +35,10 @@ impl DumbBufferDisplay {
let (depth, bpp) = pixel_format_params(format) let (depth, bpp) = pixel_format_params(format)
.ok_or_else(|| format!("Cannot get depth and bpp for pixel format: {format:?}"))?; .ok_or_else(|| format!("Cannot get depth and bpp for pixel format: {format:?}"))?;
let front_buffer: RefCell<DumbBuffer> = DumbBuffer::allocate( let front_buffer: RefCell<DumbBuffer> =
&drm_output.drm_device, DumbBuffer::allocate(&drm_output.drm_device, drm_output.size(), format, depth, bpp)
drm_output.size(), .map_err(|err| format!("Could not allocate drm dumb buffer: {err}"))?
format, .into();
depth,
bpp,
)
.map_err(|err| format!("Could not allocate drm dumb buffer: {err}"))?
.into();
let back_buffer = DumbBuffer::allocate( let back_buffer = DumbBuffer::allocate(
&drm_output.drm_device, &drm_output.drm_device,

View file

@ -274,7 +274,8 @@ impl DrmOutput {
} }
} }
Err(format!("No available formats found for current plane with CRTC {:?}", self.crtc).into()) Err(format!("No available formats found for current plane with CRTC {:?}", self.crtc)
.into())
} }
pub fn size(&self) -> (u32, u32) { pub fn size(&self) -> (u32, u32) {