chore: clippy
This commit is contained in:
parent
3b70bc0265
commit
0847247c33
77 changed files with 865 additions and 1029 deletions
|
|
@ -173,7 +173,7 @@ where
|
|||
Ok(Some(PendingImageCopyData {
|
||||
frame,
|
||||
damage: damage
|
||||
.into_iter()
|
||||
.iter()
|
||||
.map(|rect| {
|
||||
let logical = rect.to_logical(1);
|
||||
logical.to_buffer(1, transform.invert(), &buffer_size.to_logical(1, transform))
|
||||
|
|
@ -354,7 +354,7 @@ pub fn render_workspace_to_buffer(
|
|||
&common.shell,
|
||||
None,
|
||||
common.clock.now(),
|
||||
&output,
|
||||
output,
|
||||
None,
|
||||
handle,
|
||||
cursor_mode,
|
||||
|
|
@ -373,7 +373,7 @@ pub fn render_workspace_to_buffer(
|
|||
&common.shell,
|
||||
None,
|
||||
common.clock.now(),
|
||||
&output,
|
||||
output,
|
||||
None,
|
||||
handle,
|
||||
cursor_mode,
|
||||
|
|
@ -655,7 +655,7 @@ pub fn render_window_to_buffer(
|
|||
.and_then(|wl_surface| {
|
||||
with_renderer_surface_state(&wl_surface, |state| {
|
||||
let buffer = state.buffer()?;
|
||||
let dmabuf = get_dmabuf(&*buffer).ok()?;
|
||||
let dmabuf = get_dmabuf(buffer).ok()?;
|
||||
dmabuf.node()
|
||||
})
|
||||
})
|
||||
|
|
@ -783,7 +783,7 @@ pub fn render_cursor_to_buffer(
|
|||
{
|
||||
let mut elements = cursor::draw_cursor(
|
||||
renderer,
|
||||
&seat,
|
||||
seat,
|
||||
Point::from((0.0, 0.0)),
|
||||
1.0.into(),
|
||||
1.0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue