[domistream] Tests: first compile, clippy clean

Temporaries borrowed past their statement (control, media), clippy's
is_multiple_of, needless index loop and type complexity. input.rs: the
MOUSE_MOVE_ABS builder dropped the y field; the PROTOCOL.md cross-check would
have caught it at runtime.
This commit is contained in:
2026-11-25 13:08:24 +01:00
parent 8d0bebfbc3
commit 2740d3dd45
7 changed files with 19 additions and 12 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ fn rel(dx: i16, dy: i16) -> Vec<u8> {
}
fn abs(x: i16, y: i16, w: u16, h: u16) -> Vec<u8> {
input_message(0x05, &[&be16(x)[..], &[0, 0], &w.to_be_bytes(), &h.to_be_bytes()].concat())
input_message(0x05, &[&be16(x)[..], &be16(y), &[0, 0], &w.to_be_bytes(), &h.to_be_bytes()].concat())
}
fn button(down: bool, b: u8) -> Vec<u8> {