From 73b160c2f8634e4f1e61bae655a84ea1686b2292 Mon Sep 17 00:00:00 2001 From: flybrain Date: Wed, 23 Sep 2026 07:27:34 +0000 Subject: [PATCH] clippy --- services/flysim/crates/flysim/examples/trap_hunt.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/flysim/crates/flysim/examples/trap_hunt.rs b/services/flysim/crates/flysim/examples/trap_hunt.rs index f3729f6..1f48569 100644 --- a/services/flysim/crates/flysim/examples/trap_hunt.rs +++ b/services/flysim/crates/flysim/examples/trap_hunt.rs @@ -177,6 +177,9 @@ impl NeuralRecovery for AgentRecovery<'_> { } /// Where the fly stood on one frame, and what it started on it. +/// A refused macro and the `(map, x, y)` it was refused on. +type RefusedAt = (&'static str, Option<(u32, u32, u32)>); + struct Trace { /// `(brain ms, map, x, y)` for every frame the adapter could place the player on. steps: Vec<(f64, u32, u32, u32)>, @@ -195,7 +198,7 @@ struct Trace { /// `refused` outcomes by macro, and the run of one macro refused with the fly on one tile: /// row 57's pad was one button refused 740 times running. refusals: BTreeMap<&'static str, u64>, - refusal_run: (Option<(&'static str, Option<(u32, u32, u32)>)>, u64), + refusal_run: (Option, u64), longest_refusal_run: (u64, &'static str), /// Frames spent in each scene, so a window full of macros can be read back to the scene that /// dealt them.