# must fail: plan_classes_O8 # ranges of different classes are merged (plan::plan_components) diff --git a/wai/wai-rs/src/http_binding/plan.rs b/wai/wai-rs/src/http_binding/plan.rs index 1d2902f7..fc58b047 100644 --- a/wai/wai-rs/src/http_binding/plan.rs +++ b/wai/wai-rs/src/http_binding/plan.rs @@ -151,7 +151,7 @@ pub fn plan_components( let mut merged: Vec<(Class, u64, u64)> = Vec::new(); for (class, a, b) in pieces { match merged.last_mut() { - Some((c, _, e)) if *c == class && *e >= a => *e = (*e).max(b), + Some((_, _, e)) if *e >= a => *e = (*e).max(b), _ => merged.push((class, a, b)), } }