[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
+2 -2
View File
@@ -248,9 +248,9 @@ fn paired_needs_exactly_five_answers() {
#[test]
fn a_bare_paired_answer_cannot_skip_any_step() {
// `<paired>1</paired>` is all steps 4 and 5 need. Fed early, it must fail, never jump ahead.
for steps in 0..3 {
for (steps, state) in STATES.iter().enumerate().take(3) {
let (mut s, mut rng, id) = session_after(steps);
assert_eq!(s.state(), STATES[steps]);
assert_eq!(s.state(), *state);
expect_failure(&mut s, &id, &mut rng, 200, &resp_ok(), PairingFailure::MalformedAnswer);
}
}