all: address clippy lints
This commit is contained in:
parent
3056c9af71
commit
02a18f620b
4 changed files with 6 additions and 6 deletions
|
|
@ -519,7 +519,7 @@ impl MetalBackend {
|
||||||
_ => None,
|
_ => None,
|
||||||
},
|
},
|
||||||
angle: match event.ring_position() {
|
angle: match event.ring_position() {
|
||||||
n if n == -1.0 => None,
|
-1.0 => None,
|
||||||
n => Some(n),
|
n => Some(n),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
@ -539,7 +539,7 @@ impl MetalBackend {
|
||||||
_ => None,
|
_ => None,
|
||||||
},
|
},
|
||||||
position: match event.strip_position() {
|
position: match event.strip_position() {
|
||||||
n if n == -1.0 => None,
|
-1.0 => None,
|
||||||
n => Some(n),
|
n => Some(n),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -728,8 +728,8 @@ impl<'a> EdidParser<'a> {
|
||||||
vertical_blanking_lines: u16::from_le_bytes([b[6], b[7] & 0b1111]),
|
vertical_blanking_lines: u16::from_le_bytes([b[6], b[7] & 0b1111]),
|
||||||
horizontal_front_porch_pixels: u16::from_le_bytes([b[8], b[11] >> 6]),
|
horizontal_front_porch_pixels: u16::from_le_bytes([b[8], b[11] >> 6]),
|
||||||
horizontal_sync_pulse_pixels: u16::from_le_bytes([b[9], (b[11] >> 4) & 0b11]),
|
horizontal_sync_pulse_pixels: u16::from_le_bytes([b[9], (b[11] >> 4) & 0b11]),
|
||||||
vertical_front_porch_lines: (b[10] >> 4) | (b[11] & 0b1100) << 2,
|
vertical_front_porch_lines: (b[10] >> 4) | ((b[11] & 0b1100) << 2),
|
||||||
vertical_sync_pulse_lines: (b[10] & 0b1111) | (b[11] & 0b11) << 4,
|
vertical_sync_pulse_lines: (b[10] & 0b1111) | ((b[11] & 0b11) << 4),
|
||||||
horizontal_addressable_mm: u16::from_le_bytes([b[12], b[14] >> 4]),
|
horizontal_addressable_mm: u16::from_le_bytes([b[12], b[14] >> 4]),
|
||||||
vertical_addressable_mm: u16::from_le_bytes([b[13], b[14] & 0b1111]),
|
vertical_addressable_mm: u16::from_le_bytes([b[13], b[14] & 0b1111]),
|
||||||
horizontal_left_border_pixels: b[15],
|
horizontal_left_border_pixels: b[15],
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ impl WpLinuxDrmSyncobjSurfaceV1RequestHandler for WpLinuxDrmSyncobjSurfaceV1 {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn point(hi: u32, lo: u32) -> SyncObjPoint {
|
fn point(hi: u32, lo: u32) -> SyncObjPoint {
|
||||||
SyncObjPoint((hi as u64) << 32 | (lo as u64))
|
SyncObjPoint(((hi as u64) << 32) | (lo as u64))
|
||||||
}
|
}
|
||||||
|
|
||||||
object_base! {
|
object_base! {
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ impl ZwpLinuxDmabufV1EventHandler for UsrLinuxDmabuf {
|
||||||
if let Some(format) = formats().get(&ev.format) {
|
if let Some(format) = formats().get(&ev.format) {
|
||||||
owner.modifier(
|
owner.modifier(
|
||||||
format,
|
format,
|
||||||
(ev.modifier_hi as u64) << 32 | (ev.modifier_lo as u64),
|
((ev.modifier_hi as u64) << 32) | (ev.modifier_lo as u64),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue