[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:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user