Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

test(verify): simplify the blend alternative filter (clippy)

Richie McIlroyaf7f68b450c2
diff --git a/crates/verify/src/oracle.rs b/crates/verify/src/oracle.rs
index 3c9ca0cdd..80f1b11c4 100644
--- a/crates/verify/src/oracle.rs
+++ b/crates/verify/src/oracle.rs
@@ -549,7 +549,7 @@ pub fn read_expecting(
// both sides in the same segment.
let swapped = |ao: FrameMarker, ai: FrameMarker| ao == i && ai == o;
let alternative = best_of(&mut near.chain(far).filter(|(ao, ai)| {
- !(allowed(outgoing, *ao) && allowed(incoming, *ai)) && !swapped(*ao, *ai)
+ !(swapped(*ao, *ai) || allowed(outgoing, *ao) && allowed(incoming, *ai))
}));
if std::env::var("CAP_VERIFY_TRACE_BLEND").as_deref() == Ok("2") {
eprintln!(